body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Login Card Styles */
.login-card {
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: fadeInUp 0.5s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Table Container */
.table-container {
    max-height: 500px;
    overflow-y: auto;
}

.table-container::-webkit-scrollbar {
    width: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Table Row Alert Colors */
.table-row-success {
    background-color: #d4edda !important;
}

.table-row-warning {
    background-color: #fff3cd !important;
}

.table-row-danger {
    background-color: #f8d7da !important;
}

.table-row-info {
    background-color: #d1ecf1 !important;
}

.alert-danger-row {
    background-color: #fee !important;
}

.alert-warning-row {
    background-color: #ffc !important;
}

/* User Avatar */
.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

/* Button Hover Effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Tab Styles */
.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #495057;
    background-color: #f8f9fa;
}

.nav-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-bottom: 3px solid #667eea;
}

/* Form Input Focus */
.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Badge Styles */
.badge {
    padding: 0.4em 0.8em;
    font-weight: 500;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
}

/* Table Styles */
.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

/* Dashboard Container */
#dashboard-container {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Utility Classes */
.d-none {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .table-container {
        max-height: 400px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-tabs::-webkit-scrollbar {
        display: none;
    }
}

/* Loading Animation */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Card Title Icon */
.card-title i {
    color: #667eea;
}

/* Input Group */
.input-group-text {
    background-color: #f8f9fa;
    border-color: #ced4da;
}

/* Status Badges */
.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529;
}

.badge.bg-primary {
    background-color: #007bff !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

/* Clock Display */
#clock {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 500;
}

/* Stats Display */
#reports-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
}

#reports-content .text-muted {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Holiday Calendar Styles */
#holidays-content .alert-info {
    border-left: 4px solid #0dcaf0;
}

/* Vehicle Status Colors */
.vehicle-status-active {
    color: #28a745;
}

.vehicle-status-maintenance {
    color: #ffc107;
}

.vehicle-status-inactive {
    color: #dc3545;
}

/* Smooth Transitions */
* {
    transition: color 0.15s ease-in-out, 
                background-color 0.15s ease-in-out, 
                border-color 0.15s ease-in-out, 
                box-shadow 0.15s ease-in-out;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .navbar,
    .btn,
    .admin-only,
    #login-container {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}