/* TimeTracker Custom Styles */

/* General Styles */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Navbar Styles */
.navbar-brand {
    font-weight: 700;
}

/* Card Styles with sleek consumer polish */
.card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    margin-bottom: 1.5rem;
    background-color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05), 0 2px 5px rgba(0, 0, 0, 0.03);
}

.card-header {
    background-color: #fafbfc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* Primary actions and buttons visual polish */
.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.15);
    transition: all 0.2s ease;
}

.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
    transform: translateY(-1px);
}

/* Table Styles - high fidelity timesheet grid */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    font-weight: 600;
    background-color: #fafbfc;
    border-bottom: 2px solid #e5e7eb;
    color: #4b5563;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
}

.table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
}

.table-hover tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.02) !important;
}

/* Timesheet Daily/Weekly Grid Highlight */
.timesheet-hours-input {
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #d1d5db;
    max-width: 80px;
    margin: 0 auto;
}

.timesheet-hours-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Approval State Emphasis Colors */
.badge {
    padding: 0.45rem 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.badge.bg-success, .badge.approval-approved {
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0;
}

.badge.bg-warning, .badge.approval-pending {
    background-color: #fffbeb !important;
    color: #92400e !important;
    border: 1px solid #fde68a;
}

.badge.bg-danger, .badge.approval-rejected {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fca5a5;
}

.badge.bg-primary, .badge.status-submitted {
    background-color: #e0e7ff !important;
    color: #3730a3 !important;
    border: 1px solid #c7d2fe;
}

/* Deliberate and warm empty states */
.empty-state {
    padding: 3.5rem 1.5rem;
    text-align: center;
    background: #ffffff;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
}

.empty-state-icon {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1.25rem;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-size: 0.95rem;
    color: #6b7280;
    max-width: 400px;
    margin: 0 auto 1.5rem auto;
}

/* Dashboard Cards */
.card .display-4 {
    font-size: 2.5rem;
    font-weight: 500;
}

/* Timesheet Styles */
.timesheet-day {
    min-width: 100px;
}

.timesheet-hours {
    font-weight: 500;
}

.timesheet-weekend {
    background-color: #f8f9fa;
}

/* Login and Registration Forms */
.auth-card {
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .no-print {
        display: none !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    
    .card-header {
        background-color: transparent !important;
        border-bottom: 1px solid #dee2e6 !important;
    }
    
    .table {
        width: 100% !important;
    }
}
