:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
}

.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Header Styles */
.navbar {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Button Styles */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Table Styles */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
    color: white;
    border: none;
    font-weight: 600;
}

.table td {
    border-color: #e9ecef;
    vertical-align: middle;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Progress Steps */
.step-progress {
    position: relative;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
}

.step-circle {
    position: relative;
    z-index: 3;
    border: 2px solid #e9ecef;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step.completed .step-circle {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

/* Map Styles */
#map, #dashboardMap, #profileMap {
    border-radius: 8px;
    border: 1px solid #ddd;
}

.leaflet-control-container .leaflet-top .leaflet-control {
    margin-top: 10px;
}

/* Dashboard Stats */
.stat-card {
    background: white;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card h2 {
    color: var(--primary-color);
    font-weight: bold;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: var(--success-color);
    background: rgba(39, 174, 96, 0.1);
}

.alert-warning {
    border-left-color: var(--warning-color);
    background: rgba(243, 156, 18, 0.1);
}

.alert-danger {
    border-left-color: var(--danger-color);
    background: rgba(231, 76, 60, 0.1);
}

/* Badge Styles */
.badge {
    border-radius: 4px;
    font-weight: 500;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
    color: white;
    border-radius: 10px 10px 0 0;
}

/* Search Control */
.search-control {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .step-progress {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-progress::before {
        display: none;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Print Styles */
@media print {
    .navbar, .btn, .no-print {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}

/* Footer Styles */
footer {
    margin-top: auto;
}

.min-vh-100 {
    min-height: 100vh;
}

/* Smooth scrolling for back to top */
html {
    scroll-behavior: smooth;
}

/* Footer link styles */
footer a {
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    transform: translateY(-1px);
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
    footer .text-md-start,
    footer .text-md-end {
        text-align: center !important;
    }
    
    footer .row > div {
        margin-bottom: 1.5rem;
    }
}

/* Enhanced Header Styles */
.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 8px;
}

.navbar-nav .dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin: 2px 8px;
    width: auto;
}

.navbar-nav .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #000;
}

.navbar-nav .dropdown-divider {
    margin: 0.5rem 0;
}

/* Quick Actions Button */
.navbar .btn-outline-light {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.9);
}

.navbar .btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: white;
}

/* Dropdown Icons */
.dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Active Navigation Item */
.navbar-nav .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* Responsive Header */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    .navbar-nav .dropdown-item {
        margin: 0;
        border-radius: 0;
    }
    
    .navbar .btn-outline-light {
        margin: 0.5rem 0;
        width: 100%;
        text-align: left;
    }
}

/* Badge for notification counts */
.navbar .nav-link .badge {
    font-size: 0.6rem;
    margin-left: 4px;
    vertical-align: top;
}

/* Smooth dropdown animations */
.dropdown-menu {
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Weekly Report Styles */
.report-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.report-header {
    border-bottom: 2px solid #3498db;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* ID Card Styles */
.id-card {
    width: 85mm;
    height: 54mm;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.id-card-photo {
    width: 25mm;
    height: 30mm;
    border-radius: 5px;
    object-fit: cover;
    border: 2px solid white;
}

.id-card-content {
    padding: 10px;
}

/* Print styles for ID cards */
@media print {
    .id-card {
        break-inside: avoid;
        margin: 5mm;
    }
}