:root {
    --primary-color: #3b5998;
    --secondary-color: #8b9dc3;
    --accent-color: #dfe3ee;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.card {
    border: none;
    border-radius: 10px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2d4373;
    border-color: #2d4373;
}

.sidebar {
    min-height: calc(100vh - 73px);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    width: 250px;
    position: fixed;
    top: 73px;
    left: 0;
    z-index: 1000;
    padding-top: 20px;
    transition: all 0.3s;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    margin: 5px 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.main-content {
    margin-left: 250px;
    padding: 20px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .sidebar {
        width: 80px;
        text-align: center;
    }
    
    .sidebar .nav-link span {
        display: none;
    }
    
    .sidebar .nav-link i {
        margin-right: 0;
        font-size: 1.2rem;
    }
    
    .main-content {
        margin-left: 80px;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block !important;
    }
}

.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.table th {
    background-color: var(--primary-color);
    color: white;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-verified {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.camera-preview {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
}


/* Password strength indicator */
.password-strength {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 5px;
    display: none;
}

.password-strength.very-weak {
    background-color: #dc3545;
    color: white;
}

.password-strength.weak {
    background-color: #fd7e14;
    color: white;
}

.password-strength.medium {
    background-color: #ffc107;
    color: black;
}

.password-strength.strong {
    background-color: #20c997;
    color: white;
}

.password-strength.very-strong {
    background-color: #198754;
    color: white;
}

/* Image preview */
.image-preview {
    max-width: 200px;
    max-height: 200px;
    margin-top: 10px;
    display: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px;
}

/* Loading overlay */
#loadingOverlay {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

/* Toast customization */
.toast {
    margin-bottom: 10px;
}

/* Mobile-specific styles */
@media (max-width: 576px) {
    .sidebar-toggle {
        display: block !important;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1001;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: var(--primary-color);
        color: white;
        border: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
}

/* Print styles */
@media print {
    .sidebar, .sidebar-toggle, .btn {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
    }
}