:root {
    --primary: #334155;
    --primary-hover: #1e293b;
    --secondary: #64748b;
    --dark: #0f172a;
    --light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(226, 232, 240, 0.8);
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    --radius: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f1f5f9;
    color: var(--dark);
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    background: var(--glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

h1 {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-align: center;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--glass);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    box-sizing: border-box;
}

.navbar .logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
}

.dashboard-container {
    width: 94%;
    max-width: 1000px;
    margin-top: 5rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }
    .navbar .logo {
        font-size: 1rem;
    }
    .user-info span {
        display: none; /* Ocultar "Hola, Nombre" en móvil para ahorrar espacio */
    }
    .dashboard-container {
        margin-top: 4.5rem;
        padding: 1rem;
        width: 100%;
        border-radius: 0;
    }
    .clock {
        font-size: 2.2rem;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    font-weight: 600;
    color: var(--secondary);
}

.clock {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin: 2rem 0;
    color: var(--dark);
}

.date {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 2rem;
}
