/* static/css/styles.css */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Dashboard Cards */
.stat-card {
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

/* Room Status Colors */
.room-clean { background-color: #d1e7dd; color: #0a3622; }
.room-dirty { background-color: #fff3cd; color: #664d03; }
.room-inspected { background-color: #cfe2ff; color: #084298; }
.room-maintenance { background-color: #f8d7da; color: #842029; }
.room-out_of_order { background-color: #e2e3e5; color: #41464b; }

/* Priority Badges */
.priority-low { background-color: #0dcaf0; }
.priority-medium { background-color: #ffc107; }
.priority-high { background-color: #fd7e14; }
.priority-urgent { background-color: #dc3545; }

/* Status Badges */
.status-pending { background-color: #6c757d; }
.status-in_progress { background-color: #0d6efd; }
.status-completed { background-color: #198754; }
.status-cancelled { background-color: #dc3545; }

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-lg {
    width: 80px;
    height: 80px;
}

/* Tables */
.table-hover tbody tr {
    transition: background-color 0.2s;
}

/* Quick Actions */
.quick-action-btn {
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.5rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quick-action-btn i {
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ============================================
   ESTILOS PARA PÁGINA DE LOGIN
   ============================================ */

/* Fondo de la página de login */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenedor principal del login */
.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

/* Card del formulario de login */
.login-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

/* Header del login con logo */
.login-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.login-logo {
    max-width: 80%;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: 10px;
}

.login-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Cuerpo del formulario */
.login-body {
    padding: 40px 35px;
}

/* Estilos de los inputs */
.login-body .form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
}

.login-body .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.login-body .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

/* Input de contraseña con botón toggle */
.password-input {
    padding-right: 45px !important;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    z-index: 10;
    font-size: 1.2rem;
}

.password-toggle:hover {
    color: #0d6efd;
}

/* Botón de login */
.btn-login {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
    background: linear-gradient(135deg, #0a58ca 0%, #0d6efd 100%);
}

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

/* Alertas en el login */
.login-body .alert {
    border-radius: 8px;
    border: none;
}

/* Footer */
footer {
    background-color: none;
    color: white;
    text-align: center;
    margin-top: 20px;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Responsive para móviles */
@media (max-width: 576px) {
    .login-container {
        padding: 10px;
    }

    .login-header {
        padding: 30px 20px;
    }

    .login-body {
        padding: 30px 25px;
    }

    .login-logo {
        max-width: 160px;
    }
}

/* ============================================
   ESTILOS PARA MY CLEANING TASKS
   ============================================ */

.task-card {
        transition: all 0.3s ease;
        cursor: pointer;
        border-left: 4px solid #6c757d;
    }
    .task-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    }
    .task-card.priority-high {
        border-left-color: #dc3545;
    }
    .task-card.priority-medium {
        border-left-color: #ffc107;
    }
    .task-card.priority-low {
        border-left-color: #28a745;
    }
    .status-badge {
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
    }
    .status-pending {
        background-color: #fff3cd;
        color: #856404;
    }
    .status-in-progress {
        background-color: #cfe2ff;
        color: #084298;
    }
    .status-completed {
        background-color: #d1e7dd;
        color: #0f5132;
    }
    .progress-ring {
        width: 80px;
        height: 80px;
    }
    .stats-card {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-radius: 15px;
    }
    .room-badge {
        background-color: rgba(255,255,255,0.2);
        padding: 0.3rem 0.6rem;
        border-radius: 15px;
        font-size: 0.85rem;
    }

/* ============================================
   ESTILOS PARA ATTENDANCE DASHBOARD
   ============================================ */

   .stat-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
    }
    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }
    .stat-icon {
        width: 60px;
        height: 60px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .attendance-status {
        display: inline-block;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        margin-right: 8px;
    }
    .status-present { background-color: #28a745; }
    .status-absent { background-color: #dc3545; }
    .status-late { background-color: #ffc107; }
    .status-on-leave { background-color: #6c757d; }

    .time-card {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-radius: 15px;
    }
    .chart-container {
        position: relative;
        height: 300px;
    }

/* ============================================
   ESTILOS PARA LEAVEFORM
   ============================================ */


   .form-card {
        max-width: 800px;
        margin: 0 auto;
    }
    .date-range-info {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-radius: 10px;
        padding: 1.5rem;
    }
    .info-box {
        background-color: #e7f3ff;
        border-left: 4px solid #0d6efd;
        padding: 1rem;
        border-radius: 5px;
    }
    .days-badge {
        font-size: 2rem;
        font-weight: bold;
    }

/* ============================================
   ESTILOS PARA LEAVEMANAGEMENT
   ============================================ */

.leave-card {
        transition: all 0.3s ease;
    }
    .leave-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .status-badge {
        padding: 0.35rem 0.75rem;
        border-radius: 50px;
        font-size: 0.875rem;
        font-weight: 600;
    }
    .status-pending {
        background-color: #fff3cd;
        color: #856404;
    }
    .status-approved {
        background-color: #d4edda;
        color: #155724;
    }
    .status-rejected {
        background-color: #f8d7da;
        color: #721c24;
    }
    .filter-card {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }
