/* ===== RESET I CONFIGURACIÓ MÒBIL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    width: 100%;
    position: fixed;
    overflow: hidden;
}

body {
    background-color: #f5f5f5;
    color: #333;
    touch-action: pan-x pan-y;
}

/* ===== PANTALLES PRINCIPALS ===== */
.screen {
    display: none;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 100vh;
    width: 100%;
}

.card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* ===== ENCAPÇALAMENTS ===== */
.header {
    margin-bottom: 30px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a6bff 0%, #6a11cb 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
}

.icon-circle.green {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.icon-circle.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 700;
}

h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #666;
    font-weight: 500;
}

/* ===== SELECTOR D'IDIOMES ===== */
.language-section {
    margin-bottom: 30px;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.lang-btn {
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 15px 10px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
}

.lang-btn.active {
    border-color: #4a6bff;
    background-color: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 107, 255, 0.2);
}

.flag {
    font-size: 28px;
    margin-bottom: 8px;
}

.name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.checkmark {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #4a6bff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lang-btn.active .checkmark {
    opacity: 1;
}

/* ===== BOTONS ===== */
.action-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.primary-btn {
    background: linear-gradient(135deg, #4a6bff 0%, #6a11cb 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 18px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 107, 255, 0.3);
}

.primary-btn:active {
    transform: translateY(0);
}

.primary-btn.green {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.secondary-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 16px 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
}

.secondary-btn:hover {
    background-color: white;
    border-color: #4a6bff;
    color: #4a6bff;
}

/* ===== PANTALLA DE SELECCIÓ DE ROL ===== */
.role-section {
    margin-bottom: 30px;
}

.role-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.role-btn {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    min-height: 80px;
}

.role-btn:hover {
    border-color: #4a6bff;
    transform: translateY(-2px);
}

.role-btn.active {
    border-color: #4a6bff;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8edff 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 107, 255, 0.15);
}

.role-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.role-btn.active .role-icon {
    background: linear-gradient(135deg, #4a6bff 0%, #6a11cb 100%);
}

.role-icon i {
    color: #666;
    font-size: 20px;
    transition: all 0.3s ease;
}

.role-btn.active .role-icon i {
    color: white;
}

.role-info {
    flex: 1;
    min-width: 0;
}

.role-title {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 16px;
    color: #333;
}

.role-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.role-arrow {
    color: #ccc;
    font-size: 16px;
    margin-left: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.role-btn.active .role-arrow {
    color: #4a6bff;
}

/* ===== PANTALLA DE LOGIN ===== */
.login-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    color: #666;
    font-size: 18px;
    z-index: 2;
}

.input-with-icon input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    background-color: white;
    transition: all 0.3s ease;
    min-height: 56px;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #4a6bff;
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.1);
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked + .checkmark {
    background-color: #4a6bff;
    border-color: #4a6bff;
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.forgot-password {
    color: #4a6bff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* ===== PANTALLA DE GEOLOCALITZACIÓ ===== */
.features-list {
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(74, 107, 255, 0.05);
    border-radius: 12px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4a6bff 0%, #6a11cb 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
    color: white;
    font-size: 18px;
}

.feature-text h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.feature-text p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.location-permission {
    margin-bottom: 25px;
}

.chrome-warning, .location-request {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.chrome-warning {
    background-color: #fff8e1;
    border-left: 4px solid #ffa000;
}

.location-request {
    background-color: #e3f2fd;
    border-left: 4px solid #1976d2;
}

.chrome-warning i, .location-request i {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.chrome-warning i {
    color: #ffa000;
}

.location-request i {
    color: #1976d2;
}

.chrome-warning p, .location-request p {
    font-size: 14px;
    color: #5d4037;
    line-height: 1.4;
    margin: 0;
}

.location-request p {
    color: #0d47a1;
}

/* ===== PANTALLA DEL MAPA ===== */
#map-screen.active {
    display: flex;
    flex-direction: column;
    background: white;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    position: relative;
    min-height: 70px;
    flex-shrink: 0;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
}

.header-btn:hover {
    background: #e0e0e0;
}

.header-btn:active {
    transform: scale(0.95);
}

.map-header h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.accuracy-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a6bff 0%, #6a11cb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

#user-role-display {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.map-container {
    flex: 1;
    position: relative;
    display: flex;
    height: calc(100vh - 70px);
}

#map {
    width: 100%;
    height: 100%;
    flex: 1;
}

/* ===== CONTROLS DEL MAPA ===== */
.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.map-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    border: none;
    transition: all 0.3s ease;
    min-width: 56px;
    min-height: 56px;
}

.map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.map-btn:active {
    transform: translateY(0);
}

.map-btn.active {
    background: #4a6bff;
    color: white;
}

/* ===== LOADING ===== */
.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #4a6bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* ===== INDICADOR DE PRECISIÓ ===== */
.accuracy-indicator {
    position: absolute;
    top: 90px;
    left: 20px;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 40px);
}

.accuracy-indicator.good {
    color: #2ecc71;
    border-left: 4px solid #2ecc71;
}

.accuracy-indicator.poor {
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
}

/* ===== PANELL DE STANDS ===== */
.stands-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.stands-panel.open {
    transform: translateY(0);
}

.panel-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.panel-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-panel {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-panel:hover {
    background: #f5f5f5;
}

.search-container {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background: white;
    box-shadow: 0 0 0 2px rgba(74, 107, 255, 0.2);
}

.search-box i {
    color: #666;
    margin-right: 12px;
    font-size: 18px;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    font-size: 16px;
    color: #333;
}

.search-box input::placeholder {
    color: #999;
}

.search-clear {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    margin-left: 8px;
}

.stands-filters {
    padding: 15px 25px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.filter-tags {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filter-tags::-webkit-scrollbar {
    display: none;
}

.filter-tag {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-tag.active {
    background: #4a6bff;
    border-color: #4a6bff;
    color: white;
}

.stands-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
}

.stand-item {
    padding: 20px 25px;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stand-item:hover {
    background: #f8f9fa;
}

.stand-item:active {
    background: #f0f0f0;
}

.stand-item:last-child {
    border-bottom: none;
}

.stand-name {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.stand-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.stand-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== PANELL DE MENÚ ===== */
.menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1500;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.menu-panel.open {
    right: 0;
}

.menu-header {
    padding: 30px 25px;
    background: linear-gradient(135deg, #4a6bff 0%, #6a11cb 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar.large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-details h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
}

.user-details p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-items {
    flex: 1;
    padding: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.menu-item:hover {
    background: #f8f9fa;
    border-left-color: #4a6bff;
}

.menu-item i {
    font-size: 20px;
    margin-right: 15px;
    color: #666;
    width: 24px;
    text-align: center;
}

.menu-item span {
    font-size: 16px;
    font-weight: 500;
}

.menu-footer {
    padding: 20px 25px;
    border-top: 1px solid #f0f0f0;
}

.logout-btn {
    width: 100%;
    background: none;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #e74c3c;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logout-btn:hover {
    background: #ffeaea;
    border-color: #e74c3c;
}

/* ===== MODO ADMINISTRADOR ===== */
.admin-mode-indicator {
    margin: 10px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    animation: pulse-admin-mode 2s infinite;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

@keyframes pulse-admin-mode {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.admin-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 107, 107, 0.05);
    pointer-events: none;
    z-index: 500;
    border: 3px solid #ff6b6b;
    border-radius: 0;
}

.admin-location-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 10000;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: none;
}

.admin-panel-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.close-panel-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-panel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.admin-panel-content {
    padding: 25px;
}

.coord-display {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.coord-values {
    display: flex;
    gap: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    flex-wrap: wrap;
}

.coord-values span {
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    min-height: 56px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a6bff;
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.1);
}

.admin-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 54px;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #4a6bff 0%, #6a11cb 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 107, 255, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: white;
    border-color: #4a6bff;
    color: #4a6bff;
}

/* ===== MARCADORES ===== */
.admin-marker {
    background: none !important;
    border: none !important;
}

.admin-marker-icon {
    width: 36px;
    height: 36px;
    background: #ff6b6b;
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    animation: pulse-admin 2s infinite;
}

@keyframes pulse-admin {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.stand-marker {
    background: none !important;
    border: none !important;
}

.stand-marker-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #4a6bff 0%, #6a11cb 100%);
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(74, 107, 255, 0.4);
}

/* ===== POPUPS ===== */
.stand-popup h4 {
    margin: 0 0 10px 0;
    color: #4a6bff;
    font-size: 16px;
    font-weight: 700;
}

.stand-popup p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .card {
        padding: 25px;
        border-radius: 18px;
    }
    
    .language-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .lang-btn {
        min-height: 70px;
        padding: 12px 10px;
    }
    
    .map-header {
        padding: 12px 15px;
        min-height: 60px;
    }
    
    .map-header h1 {
        font-size: 16px;
    }
    
    .accuracy-display {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .map-container {
        height: calc(100vh - 60px);
    }
    
    .map-controls {
        top: 15px;
        right: 15px;
    }
    
    .map-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .stands-panel {
        max-height: 75vh;
    }
    
    .panel-header, .search-container, .stands-filters {
        padding: 15px 20px;
    }
    
    .stand-item {
        padding: 15px 20px;
    }
    
    .menu-panel {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .card {
        padding: 20px;
        border-radius: 16px;
    }
    
    .icon-circle {
        width: 70px;
        height: 70px;
    }
    
    .icon-circle i {
        font-size: 28px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    h2 {
        font-size: 16px;
    }
    
    .primary-btn, .secondary-btn {
        padding: 16px 20px;
        font-size: 15px;
        min-height: 52px;
    }
    
    .role-btn {
        padding: 15px;
        min-height: 70px;
    }
    
    .role-icon {
        width: 44px;
        height: 44px;
        margin-right: 12px;
    }
    
    .map-header {
        padding: 10px 12px;
        min-height: 55px;
    }
    
    .map-header h1 {
        font-size: 15px;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    #user-role-display {
        font-size: 12px;
    }
    
    .map-container {
        height: calc(100vh - 55px);
    }
    
    .map-controls {
        top: 12px;
        right: 12px;
    }
    
    .map-btn {
        width: 46px;
        height: 46px;
        font-size: 16px;
    }
    
    .accuracy-indicator {
        top: 70px;
        left: 12px;
        right: 12px;
        max-width: none;
    }
    
    .stands-panel {
        max-height: 70vh;
    }
    
    .admin-location-panel {
        width: 95%;
    }
    
    .admin-panel-content {
        padding: 20px;
    }
    
    .coord-values {
        flex-direction: column;
        gap: 10px;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        min-width: auto;
    }
}

/* ===== UTILITATS ===== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== SCROLLBAR PERSONALITZAT ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}