* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #BFE2E0;
    color: #000;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.logo {
    width: 400px;
    max-width: 100%;
    display: block;
    margin: 0 auto 20px auto;
}

.header {
    text-align: center;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, #F54133 0%, transparent 70%);
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

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

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: #F54133;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

h2 {
    color: #F54133;
    margin-bottom: 30px;
    text-align: center;
}

.subtitle {
    color: #888;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.form-card {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    color: #000;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: #F54133;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 20px rgba(245, 65, 51, 0.2);
}

select option {
    background: #1a1a1a;
    color: #000;
}

.submit-btn, .btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #F54133, #0088ff);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    margin: 5px;
}

.submit-btn:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 65, 51, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 1);
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #F54133;
}

.qr-container {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#qrcode {
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    display: inline-block;
}

.wallet-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.wallet-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.wallet-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #F54133;
}

.building-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.building-card {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.building-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, #F54133 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.building-card:hover::before {
    opacity: 0.1;
}

.building-card:hover {
    transform: translateY(-5px);
    border-color: #F54133;
    box-shadow: 0 10px 30px rgba(245, 65, 51, 0.2);
}

.building-card h3 {
    margin-bottom: 10px;
    color: #F54133;
}

.scanner-container {
    max-width: 500px;
    margin: 30px auto;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#reader {
    border-radius: 10px;
    overflow: hidden;
}

.current-building {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(245, 65, 51, 0.2);
    border: 1px solid #F54133;
    border-radius: 10px;
    color: #F54133;
    margin-bottom: 20px;
}

.message {
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.success {
    background: rgba(245, 65, 51, 0.2);
    border: 1px solid #F54133;
    color: #F54133;
}

.error {
    background: rgba(255, 77, 77, 0.2);
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #F54133;
    box-shadow: 0 10px 30px rgba(245, 65, 51, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #F54133, #0088ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0;
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
}

.chart-container {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

/* Media Queries */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .form-card {
        padding: 20px;
    }
    
    .wallet-btns {
        flex-direction: column;
    }
    
    .building-grid {
        grid-template-columns: 1fr;
    }
}

/* Animaciones adicionales */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para el modo de pausa */
.pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 10px;
}

.pause-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    width: 90%;
}

.pause-content h3 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 1.3em;
}

.pause-content p {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Estados del botón de pausa */
.btn-warning {
    background-color: #ff9800;
    border-color: #ff9800;
    color: #000;
}

.btn-warning:hover {
    background-color: #e68900;
    border-color: #e68900;
}

.btn-success {
    background-color: #4caf50;
    border-color: #4caf50;
    color: #000;
}

.btn-success:hover {
    background-color: #45a049;
    border-color: #45a049;
}

/* Posicionamiento relativo para el contenedor del scanner */
.building-selector {
    position: relative;
}

/* Efecto de deshabilitado para el área de escaneo */
#reader.paused {
    opacity: 0.3;
    pointer-events: none;
} 