/* Modern UI Elements CSS */

/* Form Controls - Modern UI */
.form-control,
.form-select {
    border-radius: 1rem;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fff;
    color: #1e293b;
    width: 100%;
    position: relative;
    backdrop-filter: blur(4px);
}

.form-control::placeholder {
    color: #94a3b8;
    opacity: 0.8;
}

.form-control:hover,
.form-select:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.form-control:focus,
.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
    transform: translateY(-2px);
}

/* Invalid state with modern styling */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #ef4444;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ef4444' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 11c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
    padding-right: 3rem;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Disabled state */
.form-control:disabled,
.form-select:disabled {
    background-color: #f8fafc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Select specific styles */
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2364748b' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
    padding-right: 3rem;
}

/* Textarea specific styles */
textarea.form-control {
    min-height: 100px;
    line-height: 1.5;
    resize: vertical;
}

/* Modern Form Groups */
.form-group-modern {
    position: relative;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.form-group-modern:hover .form-label {
    color: #3b82f6;
    transform: translateY(-1px);
}

.form-group-modern:focus-within .form-label {
    color: #3b82f6;
    transform: translateY(-1px);
}

/* Modern Labels */
.form-label {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.form-label i {
    font-size: 1rem;
    margin-right: 0.5rem;
    opacity: 0.9;
}

.form-label .text-danger {
    margin-left: 0.25rem;
    font-weight: 600;
}

/* Help Text */
.form-text {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
    display: block;
    transition: color 0.3s ease;
}

.form-group-modern:hover .form-text {
    color: #475569;
}

/* Invalid Feedback */
.invalid-feedback {
    font-size: 0.875rem;
    color: #ef4444;
    margin-top: 0.5rem;
    display: none;
    animation: fadeInUp 0.3s ease;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus Ring */
.form-control:focus-visible,
.form-select:focus-visible,
.btn:focus-visible {
    outline: none;
    position: relative;
}

.form-control:focus-visible::after,
.form-select:focus-visible::after,
.btn:focus-visible::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid #3b82f6;
    animation: focusRing 0.3s ease;
}

@keyframes focusRing {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Input Groups */
.input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
    text-align: center;
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
}

.input-group > .form-control:not(:last-child),
.input-group > .input-group-text:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > .form-control:not(:first-child),
.input-group > .input-group-text:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: -2px;
}

/* Modern Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.025em;
    cursor: pointer;
    white-space: nowrap;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2), 0 2px 4px -1px rgba(59, 130, 246, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -1px rgba(59, 130, 246, 0.2), 0 4px 6px -1px rgba(59, 130, 246, 0.1);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(59, 130, 246, 0.2);
}

/* Secondary Button */
.btn-secondary {
    background: white;
    border: 2px solid #e2e8f0;
    color: #475569;
}

.btn-secondary:hover {
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Success Button */
.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.2);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -1px rgba(34, 197, 94, 0.2);
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -1px rgba(239, 68, 68, 0.2);
}

/* Loading State */
.btn.is-loading {
    color: transparent !important;
    pointer-events: none;
    position: relative;
}

.btn.is-loading::after {
    content: '';
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    top: calc(50% - 0.625rem);
    left: calc(50% - 0.625rem);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-right-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Icon Button */
.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Disabled State */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Toggle Switch */
.form-switch {
    padding-left: 3rem;
}

.form-switch .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    border-radius: 1rem;
    background-color: #e2e8f0;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.form-switch .form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.1);
}

/* Cards/Blocks */
.block {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
}

.block:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.block-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.block-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.block-content {
    padding: 1.5rem;
}

/* Breadcrumbs */
.breadcrumb {
    padding: 0.5rem 0; /* Reduced from 0.75rem to 0.5rem for tighter spacing */
    margin: 0;
}

.breadcrumb-item {
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.breadcrumb-item a:hover {
    color: #3b82f6;
}

.breadcrumb-item.active {
    color: #1e293b;
    font-weight: 500;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
}

.btn-close {
    opacity: 0.5;
    transition: opacity 0.2s ease-in-out;
}

.btn-close:hover {
    opacity: 1;
}

/* Modern Profile Tabs */
.profile-tabs {
    background: #ffffff;
    border-radius: 1rem;
    padding: 0.5rem;
    margin-bottom: 2rem;
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 10;
    scrollbar-width: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.profile-tabs::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3rem;
    background: linear-gradient(to right, rgba(248, 250, 252, 0), rgba(248, 250, 252, 1));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-tabs.scrollable::after {
    opacity: 1;
}

.profile-tabs::-webkit-scrollbar {
    display: none;
}

.profile-tab-btn {
    padding: 0.875rem 1.75rem;
    border: 2px solid transparent;
    background: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    min-width: 120px;
    justify-content: center;
}

.profile-tab-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.profile-tab-btn:hover {
    color: #3b82f6;
    background-color: #eff6ff;
    transform: translateY(-1px);
}

.profile-tab-btn.active {
    color: white;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    font-weight: 700;
    border-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.profile-tab-btn i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    color: inherit;
}

.profile-tab-btn:hover i {
    transform: scale(1.1) rotate(-5deg);
}

.profile-tab-btn span {
    position: relative;
    z-index: 1;
}

.profile-tab-btn.danger {
    color: #ef4444;
}

.profile-tab-btn.danger:hover {
    background: #fef2f2;
}

.profile-tab-btn.danger.active {
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.2);
}

/* Profile Content */
.tab-content {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.tab-pane.show.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.fade {
    transition: opacity 0.15s linear;
}

.fade:not(.show) {
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional UI Utilities for Admin Consistency */

/* Page Headers */
.page-header {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.page-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Settings Container */
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Form Cards with Better Spacing */
.form-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-in-out;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.form-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
    border-color: rgba(203, 213, 225, 0.8);
}

/* Enhanced Icons */
.icon-primary {
    color: #3b82f6;
}

.icon-secondary {
    color: #64748b;
}

.icon-success {
    color: #22c55e;
}

.icon-danger {
    color: #ef4444;
}

.icon-warning {
    color: #f59e0b;
}

/* Loading States */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .settings-container {
        padding: 0 0.75rem;
    }

    .form-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .form-group-modern {
        margin-bottom: 1.25rem;
    }

    .profile-tabs {
        padding: 0.375rem;
        gap: 0.5rem;
    }
}

/* Focus States for Accessibility */
.form-control:focus-visible,
.form-select:focus-visible,
.btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Smooth Transitions for Better UX */
* {
    scroll-behavior: smooth;
}

/* Enhanced Form Validation States */
.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #22c55e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2322c55e' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

.was-validated .form-control:valid:focus,
.form-control.is-valid:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

/* Invalid feedback styling */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #ef4444;
    font-weight: 500;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #22c55e;
    font-weight: 500;
}

/* Enhanced Table Styles (if needed) */
.table-modern {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table-modern th {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #374151;
    padding: 1rem;
}

.table-modern td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

/* Status badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-status.active {
    background-color: #dcfce7;
    color: #166534;
}

.badge-status.inactive {
    background-color: #fef2f2;
    color: #991b1b;
}

.badge-status.pending {
    background-color: #fefce8;
    color: #a16207;
}

/* Modern gradient backgrounds for dashboard cards */
.bg-gradient-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

/* Modern card styles */
.modern-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px -3px rgba(0, 0, 0, 0.1), 0 8px 16px -4px rgba(0, 0, 0, 0.1) !important;
}

.modern-card .card-body {
    position: relative;
}

/* Avatar circle styles */
.avatar-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Dashboard specific styles */
.dashboard-stats .card {
    min-height: 120px;
}

.dashboard-stats .card-body {
    padding: 0;
}

.dashboard-stats h2 {
    font-size: 2rem;
    line-height: 1.2;
}

@media (max-width: 576px) {
    .dashboard-stats h2 {
        font-size: 1.5rem;
    }

    .dashboard-stats .col-8 {
        padding-left: 1rem !important;
        padding-right: 0.5rem !important;
    }

    .dashboard-stats .col-4 {
        padding-left: 0.5rem !important;
        padding-right: 1rem !important;
    }
}

/* Enhanced table styles */
.table-hover tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.02);
    transform: scale(1.01);
    transition: all 0.2s ease-in-out;
}

.border-bottom {
    border-bottom: 1px solid #e5e7eb !important;
}

.border-bottom:last-child {
    border-bottom: none !important;
}

/* ===== COMPREHENSIVE BUTTON STYLING ===== */

/* Base button improvements */
.btn {
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-transform: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

.btn:focus,
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
}

.btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.btn-primary:active {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
}

/* Secondary Button */
.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    color: white;
}

.btn-secondary:focus {
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.3);
}

/* Success Button */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

.btn-success:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.btn-danger:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

/* Warning Button */
.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
}

.btn-warning:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

/* Info Button */
.btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    border: none;
}

.btn-info:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white;
}

.btn-info:focus {
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.3);
}

/* Light Button */
.btn-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b;
    border: 1px solid #cbd5e1;
}

.btn-light:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #0f172a;
    border-color: #94a3b8;
}

.btn-light:focus {
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.3);
}

/* Dark Button */
.btn-dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    border: none;
}

.btn-dark:hover {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    color: white;
}

.btn-dark:focus {
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.3);
}

/* Outline Button Variants */
.btn-outline-primary {
    background: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.btn-outline-primary:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-outline-secondary {
    background: transparent;
    color: #6b7280;
    border: 2px solid #6b7280;
}

.btn-outline-secondary:hover {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
}

.btn-outline-danger {
    background: transparent;
    color: #ef4444;
    border: 2px solid #ef4444;
}

.btn-outline-danger:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.btn-outline-success {
    background: transparent;
    color: #10b981;
    border: 2px solid #10b981;
}

.btn-outline-success:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 1rem;
}

/* Button Groups */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
}

.btn-group .btn:last-child {
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

/* Disabled state */
.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    transform: none;
    cursor: not-allowed;
    box-shadow: none;
}

.btn:disabled:hover,
.btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Icon buttons */
.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-icon.btn-sm {
    width: 2rem;
    height: 2rem;
}

.btn-icon.btn-lg {
    width: 3rem;
    height: 3rem;
}

/* Float button (FAB) */
.btn-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-float:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Loading button state */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: btn-loading 1s linear infinite;
}

@keyframes btn-loading {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Button with icon spacing */
.btn .fas,
.btn .far,
.btn .fab,
.btn .fal {
    margin-right: 0.5rem;
}

.btn .fas:only-child,
.btn .far:only-child,
.btn .fab:only-child,
.btn .fal:only-child {
    margin-right: 0;
}

/* Special button effects */
.btn-gradient-rainbow {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 300% 300%;
    animation: gradient-shift 3s ease infinite;
    color: white;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ============================================
   MODERN ADMIN SIDEBAR STYLES
   ============================================ */

/* Admin Sidebar Container */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Sidebar Wrapper */
.sidebar-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Brand Section */
.sidebar-brand {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.sidebar-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-brand:hover::before {
    opacity: 1;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    position: relative;
    z-index: 2;
    gap: 1rem;
}

.brand-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.brand-icon i {
    font-size: 1.25rem;
    line-height: 1;
    display: block;
}

.brand-link:hover .brand-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.brand-content {
    flex: 1;
}

.brand-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.sidebar-toggle:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    transform: translateY(-50%) scale(1.1);
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

/* Navigation Sections */
.nav-section {
    margin: 1.5rem 0 0.5rem 0;
}

.nav-section-header {
    padding: 0 1.25rem;
}

.nav-section-title {
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1;
}

/* Navigation Items */
.nav-item {
    margin: 0.25rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    overflow: hidden;
    margin: 0 0.75rem;
    border-radius: 12px;
    gap: 0.75rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    color: white;
    transform: translateX(4px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.active {
    color: white;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transform: translateX(0);
}

.nav-link.active::before {
    opacity: 0;
}

/* Navigation Icons */
.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.nav-icon i {
    font-size: 1rem;
    line-height: 1;
    display: block;
    width: 16px;
    height: 16px;
    text-align: center;
}

.nav-link:hover .nav-icon {
    transform: scale(1.1);
}

.nav-link.active .nav-icon {
    color: white;
    transform: scale(1.05);
}

/* Navigation Text */
.nav-text {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Navigation Indicator */
.nav-indicator {
    width: 0;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
    transition: width 0.3s ease;
    border-radius: 2px 0 0 2px;
}

.nav-link.active .nav-indicator {
    width: 3px;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem 0.75rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.footer-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
    border: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}

.footer-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}

.footer-link:last-child {
    margin-bottom: 0;
}

.footer-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.footer-icon i {
    font-size: 0.875rem;
    line-height: 1;
    display: block;
    width: 14px;
    height: 14px;
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.footer-form {
    margin: 0;
}

.logout-link {
    color: rgba(239, 68, 68, 0.8) !important;
}

.logout-link:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

/* MOBILE RESPONSIVE STYLES CONSOLIDATED BELOW */

/* Admin Layout Adjustments */
.admin-content {
    margin-left: 280px;

    min-height: calc(100vh - 60px); /* Updated to match new margin */
    transition: margin-left 0.3s ease;
}

/* Reduce excessive top spacing in admin content */
.admin-main-content .container-fluid {
    padding-top: 0.5rem !important; /* Further reduced for tighter spacing */
    padding-bottom: 1rem !important; /* Keep some bottom padding */
}

/* Admin Header - Full Width */
.admin-header {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    z-index: 1040;
    height: 70px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
}

.admin-header .navbar {
    height: 100%;
    padding: 0 1.5rem;
    margin: 0;
}

/* Mobile responsive header - moved to consolidated section below */

/* Enhanced Hover Effects */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.nav-link:hover::after {
    left: 100%;
}

.nav-link.active::after {
    display: none;
}

/* Smooth Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-item {
    animation: slideInFromLeft 0.3s ease forwards;
}

.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.15s; }
.nav-item:nth-child(3) { animation-delay: 0.2s; }
.nav-item:nth-child(4) { animation-delay: 0.25s; }
.nav-item:nth-child(5) { animation-delay: 0.3s; }
.nav-item:nth-child(6) { animation-delay: 0.35s; }
.nav-item:nth-child(7) { animation-delay: 0.4s; }
.nav-item:nth-child(8) { animation-delay: 0.45s; }

/* Dark Mode Support */
.dark-mode .admin-sidebar {
    background: linear-gradient(180deg, #0f1419 0%, #0a0e12 100%);
    border-right-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .sidebar-brand {
    border-bottom-color: rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
}

.dark-mode .sidebar-footer {
    border-top-color: rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

/* Print Styles */
@media print {
    .admin-sidebar {
        display: none;
    }

    .admin-content {
        margin-left: 0;
    }
}

/* ============================================
   ADMIN LAYOUT ENHANCEMENTS
   ============================================ */

/* Admin Layout Container */
#admin-layout-container {
    position: relative;
    min-height: 100vh;
    background: #f8fafc;
}

/* Admin Header */
.admin-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    margin-left: 280px;
    transition: margin-left 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.admin-header .navbar {
    border-bottom: none;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Breadcrumb Navigation */
.breadcrumb-nav .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0; /* Ensure no margin */
}

/* Tighter navbar spacing */
.admin-header .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.breadcrumb-nav .breadcrumb-item {
    font-size: 0.875rem;
    font-weight: 500;
}

.breadcrumb-nav .breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-nav .breadcrumb-item a:hover {
    color: #3b82f6;
}

.breadcrumb-nav .breadcrumb-item.active {
    color: #1e293b;
    font-weight: 600;
}

/* Header Actions */
.header-actions .btn {
    border: none;
    background: transparent;
    position: relative;
}

.header-actions .btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
}

.header-actions .dropdown-menu {
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.5rem 0;
    margin-top: 8px;
}

.header-actions .dropdown-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-actions .dropdown-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.header-actions .dropdown-item i {
    width: 16px;
    text-align: center;
}

/* User Avatar */
.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

/* ============================================
   AVATAR IMAGE STYLES - RESPONSIVE FIXES
   ============================================ */

/* Base avatar styles */
.img-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    background: #f1f5f9;
    flex-shrink: 0;
}

.img-avatar:hover {
    transform: scale(1.05);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Avatar size variants */
.img-avatar32 {
    width: 32px;
    height: 32px;
}

.img-avatar48 {
    width: 48px;
    height: 48px;
}

.img-avatar64 {
    width: 64px;
    height: 64px;
}

.img-avatar96 {
    width: 96px;
    height: 96px;
}

.img-avatar128 {
    width: 128px;
    height: 128px;
}

/* Avatar thumbnail with enhanced styling */
.img-avatar-thumb {
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-avatar-thumb:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Image link wrapper */
.img-link {
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none;
}

.img-link:hover {
    transform: translateY(-2px);
}

/* Responsive avatar adjustments */
@media (max-width: 768px) {
    .img-avatar96 {
        width: 80px;
        height: 80px;
    }

    .img-avatar128 {
        width: 96px;
        height: 96px;
    }

    .img-avatar-thumb {
        border-width: 2px;
    }
}

@media (max-width: 576px) {
    .img-avatar96 {
        width: 64px;
        height: 64px;
    }

    .img-avatar128 {
        width: 80px;
        height: 80px;
    }

    .img-avatar64 {
        width: 56px;
        height: 56px;
    }

    .img-avatar48 {
        width: 40px;
        height: 40px;
    }
}

/* Profile page specific avatars */
.profile-avatar {
    max-width: 150px;
    max-height: 150px;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .profile-avatar {
        max-width: 120px;
        max-height: 120px;
    }
}

@media (max-width: 576px) {
    .profile-avatar {
        max-width: 100px;
        max-height: 100px;
        border-width: 3px;
    }
}

/* Main Content Area */
.admin-main-content {
    min-height: calc(100vh - 60px);

    background: #f8fafc;
    transition: margin-left 0.3s ease;
}

/* Alert Enhancements */
.admin-main-content .alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.admin-main-content .alert-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    color: #166534;
    border-left: 4px solid #22c55e;
}

.admin-main-content .alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fef1f1 100%);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.admin-main-content .alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fefce8 100%);
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.admin-main-content .alert i {
    font-size: 1.1rem;
}

/* Footer */
.admin-content .footer {
    margin-left: 280px;
    transition: margin-left 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    margin-top: auto;
}

/* Cards in Admin Content */
.admin-main-content .card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.admin-main-content .card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transform: translateY(-1px);
}

.admin-main-content .card-header {
    background: rgba(248, 250, 252, 0.8);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px 12px 0 0;
    padding: 1.25rem 1.5rem;
}

.admin-main-content .card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}



/* Enhanced Form Elements in Admin */
.admin-main-content .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.admin-main-content .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-main-content .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Dashboard Stats Cards */
.modern-card {
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    overflow: hidden;
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Table Enhancements */
.admin-main-content .table {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.admin-main-content .table thead th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid rgba(226, 232, 240, 0.8);
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem;
}

.admin-main-content .table tbody tr {
    transition: background-color 0.2s ease;
}

.admin-main-content .table tbody tr:hover {
    background: rgba(59, 130, 246, 0.02);
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: inherit;
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Smooth Transitions */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Scrollbar Styling */
.admin-main-content::-webkit-scrollbar {
    width: 6px;
}

.admin-main-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.admin-main-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.admin-main-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================
   FONTAWESOME ICON FIXES
   ============================================ */

/* Font Family Fixes for FontAwesome Icons */
.fas, .fa-solid,
.far, .fa-regular,
.fab, .fa-brands,
.fal, .fa-light {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro" !important;
    font-weight: 900;
    line-height: 1;
    display: inline-block;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.far, .fa-regular {
    font-weight: 400;
}

.fab, .fa-brands {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands" !important;
    font-weight: 400;
}

.fal, .fa-light {
    font-weight: 300;
}

/* Icon Size and Alignment Fixes */
.fas, .far, .fab, .fal,
.fa-solid, .fa-regular, .fa-brands, .fa-light {
    vertical-align: baseline;
    line-height: inherit;
}

/* Specific Icon Container Fixes */
.nav-icon i,
.brand-icon i,
.footer-icon i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 100%;
    height: 100%;
}

/* Brand Icon Specific Fixes */
.brand-icon i {
    font-size: 1.25rem !important;
    line-height: 1 !important;
}

/* Navigation Icon Specific Fixes */
.nav-icon i {
    font-size: 1rem !important;
    line-height: 1 !important;
    width: 16px !important;
    height: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Footer Icon Specific Fixes */
.footer-icon i {
    font-size: 0.875rem !important;
    line-height: 1 !important;
    width: 14px !important;
    height: 14px !important;
}

/* Header Icon Fixes */
.admin-header i,
.header-actions i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900;
    line-height: 1;
}

/* Dropdown Icon Fixes */
.dropdown-item i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900;
    width: 16px;
    text-align: center;
    line-height: 1;
}

/* Alert Icon Fixes */
.alert i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900;
    line-height: 1;
}

/* Button Icon Fixes */
.btn i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900;
    line-height: 1;
    margin-right: 0.25rem;
}

/* Sidebar Toggle Icon Fix */
.sidebar-toggle i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900;
    line-height: 1;
    font-size: 1rem !important;
}

/* User Avatar Icon Fix */
.user-avatar i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900;
    line-height: 1;
}



/* Icon Loading Fix */
i[class*="fa-"]:before {
    font-family: inherit;
}

/* Ensure Icons Display Properly */
.fas:before, .fa-solid:before,
.far:before, .fa-regular:before,
.fab:before, .fa-brands:before,
.fal:before, .fa-light:before {
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fix for Icon Spacing in Navigation */
.nav-link .nav-icon + .nav-text {
    margin-left: 0;
}

/* Fix for Icon Spacing in Footer Links */
.footer-link .footer-icon + .footer-text {
    margin-left: 0;
}

/* Fix for Brand Link Spacing */
.brand-link .brand-icon + .brand-content {
    margin-left: 0;
}

/* Prevent Icon Text Selection */
.nav-icon, .brand-icon, .footer-icon, .user-avatar {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Icon Animation Fixes */
.nav-icon i, .brand-icon i, .footer-icon i {
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover State Icon Fixes */
.nav-link:hover .nav-icon i,
.brand-link:hover .brand-icon i,
.footer-link:hover .footer-icon i {
    transform: none;
}

/* Active State Icon Fixes */
.nav-link.active .nav-icon i {
    color: inherit;
    transform: none;
}

/* ============================================
   END FONTAWESOME ICON FIXES
   ============================================ */

/* ============================================
   MOBILE RESPONSIVE STYLES - BULLETPROOF VERSION
   ============================================ */
/* Force mobile sidebar behavior - this will override everything */
@media screen and (max-width: 991px) {
    /* Step 1: Hide sidebar completely by default on mobile */
    .admin-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 280px !important;
        height: 100vh !important;
        z-index: 9999 !important;
        transform: none !important;
        transition: left 0.3s ease !important;
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
        border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Step 2: Show sidebar when active class is present */
    .admin-sidebar.active {
        left: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Ensure sidebar content is visible and clickable */
    .admin-sidebar * {
        pointer-events: auto !important;
        z-index: inherit !important;
    }

    /* Fix sidebar wrapper */
    .admin-sidebar .sidebar-wrapper {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        background: transparent !important;
        z-index: inherit !important;
    }

    /* Fix navigation links */
    .admin-sidebar .nav-link {
        pointer-events: auto !important;
        color: rgba(255, 255, 255, 0.8) !important;
        z-index: inherit !important;
    }

    .admin-sidebar .nav-link:hover {
        color: white !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }

    .admin-sidebar .nav-link.active {
        color: white !important;
        background: rgba(59, 130, 246, 0.2) !important;
    }

    /* Step 3: Ensure content doesn't have left margin on mobile */
    .admin-content {
        margin-left: 0 !important;

    }

    /* Step 4: Header spans full width on mobile */
    .admin-header {
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
        z-index: 1040 !important;
    }

    /* Step 5: Main content has no left margin */
    .admin-main-content {
        margin-left: 0 !important;
    }

    /* Step 6: Footer has no left margin */
    .admin-content .footer {
        margin-left: 0 !important;
    }

    /* Step 7: Overlay for mobile */
    .sidebar-overlay {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 9998 !important;
        pointer-events: auto !important;
    }

    /* Step 8: Show overlay when sidebar is open */
    body.sidebar-open .sidebar-overlay {
        display: block !important;
    }

    /* Step 9: Prevent body scroll when sidebar is open */
    body.sidebar-open {
        overflow: hidden !important;
    }

    /* Mobile-specific sidebar styling */
    .admin-sidebar .sidebar-brand {
        background: rgba(0, 0, 0, 0.2) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        pointer-events: auto !important;
    }

    .admin-sidebar .brand-link {
        color: white !important;
        text-decoration: none !important;
        pointer-events: auto !important;
    }

    .admin-sidebar .brand-title {
        color: white !important;
    }

    .admin-sidebar .brand-subtitle {
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .admin-sidebar .sidebar-toggle {
        color: white !important;
        background: transparent !important;
        border: none !important;
        pointer-events: auto !important;
    }

    .admin-sidebar .sidebar-toggle:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }

    .admin-sidebar .nav-section-header {
        color: rgba(255, 255, 255, 0.6) !important;
        pointer-events: auto !important;
    }

    .admin-sidebar .sidebar-footer {
        background: rgba(0, 0, 0, 0.2) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .admin-sidebar .footer-link {
        color: rgba(255, 255, 255, 0.8) !important;
        pointer-events: auto !important;
    }

    .admin-sidebar .footer-link:hover {
        color: white !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
}

/* ============================================
   END MOBILE RESPONSIVE STYLES
   ============================================ */
