/*
Template Name: Velzon - Admin & Dashboard Template
Author: Themesbrand
Website: https://themesbrand.com/
Contact: support@themesbrand.com
File: Custom Css File
*/

/* ===========================================
   GLOBAL STYLES
   =========================================== */

.card {
    --vz-card-border-radius: 20px;
}

.card-header:first-child {
    border-radius: inherit;
}

/* Global profile background style */
.profile-wid-bg::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: 0.9;
    background: #405189;
    background: -webkit-gradient(linear, left bottom, left top, from(#171e32), to(#405189));
    background: linear-gradient(to top, #171e32, #405189);
}

/* ===========================================
   FORM CONTROLS
   =========================================== */

/* Center placeholder text for points attribution input */
#points-a-attribuer::placeholder,
#points-a-attribuer::-webkit-input-placeholder,
#points-a-attribuer::-moz-placeholder,
#points-a-attribuer:-ms-input-placeholder {
    text-align: center !important;
}

#points-a-attribuer::-moz-placeholder {
    opacity: 1;
}

/* Form controls with text-center class */
.form-control.text-center::placeholder,
.form-control.text-center::-webkit-input-placeholder,
.form-control.text-center::-moz-placeholder,
.form-control.text-center:-ms-input-placeholder {
    text-align: center !important;
}

.form-control.text-center::-moz-placeholder {
    opacity: 1;
}

/* ===========================================
   NAVIGATION STYLES
   =========================================== */

/* Enhanced navigation active states */
.navbar-nav .nav-link.active {
    background-color: rgba(102, 145, 231, 0.15) !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    position: relative;
}

.navbar-nav .nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0 2px 2px 0;
}

/* Two column menu active states */
.twocolumn-iconview .nav-icon.active {
    background-color: rgba(102, 145, 231, 0.15) !important;
    color: white !important;
    border-radius: 8px !important;
}

/* Profile navigation active states */
.profile-nav .nav-link.active {
    background-color: #007bff !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
    transform: translateY(-1px);
    transition: all 0.3s ease !important;
}

.profile-nav .nav-link:hover:not(.active) {
    background-color: rgba(0, 123, 255, 0.1) !important;
    color: #007bff !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

/* Parent menu item highlighting */
.navbar-nav .nav-link.active + .collapse .nav-link {
    color: rgba(102, 145, 231, 0.8) !important;
}

/* Breadcrumb style enhancement for better navigation context */
.breadcrumb-item.active {
    color: #6691e7 !important;
    font-weight: 600 !important;
}

/* Page header highlighting */
.page-title-box h4 {
    color: #495057;
    font-weight: 600;
}

/* Sidebar menu hover states */
.navbar-nav .nav-link:hover {
    background-color: rgba(102, 145, 231, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

/* ===========================================
   CLIENT USER SPECIFIC STYLES
   =========================================== */

body[data-user-role="client"] .navbar-nav .nav-link.active {
    color: #6691e7 !important;
}

body[data-user-role="client"] .navbar-nav .nav-link:hover {
    color: #6691e7 !important;
}

body[data-user-role="client"] .twocolumn-iconview .nav-icon.active {
    color: #6691e7 !important;
}

/* ===========================================
   RESPONSIVE BREAKPOINTS
   =========================================== */

/* Mobile logo responsive padding */
@media (min-width: 768px) and (max-width: 875px) {
    .mobile-logo-responsive {
        padding-top: 1.5rem !important;
    }
}

/* SMALL TABLET (768px - 875px) - Mobile-like interface */
@media (min-width: 768px) and (max-width: 875px) {
    /* Search behavior */
    .app-search.d-none.d-md-block {
        display: none !important;
    }
    
    .d-md-none {
        display: block !important;
    }
    
    /* Header layout */
    .navbar-header {
        padding: 0 0.75rem !important;
        height: 70px !important;
        justify-content: space-between !important;
    }
    
    /* Button sizing */
    .btn-topbar {
        height: 36px !important;
        width: 36px !important;
    }
    
    /* Mobile search positioning */
    .dropdown.d-md-none.topbar-head-dropdown.header-item {
        display: flex !important;
        order: -1 !important;
    }
    
    /* Horizontal layout specific */
    [data-layout="horizontal"] .navbar-brand-box {
        display: none !important;
    }
    
    [data-layout="horizontal"] .topnav-hamburger {
        display: flex !important;
        align-items: center !important;
        order: -1 !important;
        margin-right: 1rem !important;
    }
    
    [data-layout="horizontal"] .topnav-hamburger::after {
        content: "▼" !important;
        margin-left: 0.5rem !important;
        font-size: 0.8rem !important;
        color: var(--vz-header-item-color) !important;
    }
}

/* MEDIUM TABLET (876px - 991px) - Desktop-like interface */
@media (min-width: 876px) and (max-width: 991px) {
    /* Search behavior */
    .app-search.d-none.d-md-block {
        display: block !important;
        order: 1 !important;
    }
    
    .d-md-none {
        display: none !important;
    }
    
    .header-item.d-none.d-sm-flex {
        display: flex !important;
    }
    
    /* Search bar styling */
    .app-search {
        padding: 10px 0 0 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .app-search .form-control {
        width: 280px !important;
        min-width: 280px !important;
        height: 36px !important;
        border: none;
        padding-left: 40px;
        padding-right: 30px;
        background-color: var(--vz-topbar-search-bg);
        box-shadow: none;
    }
    
    .app-search .dropdown-menu {
        width: 280px !important;
        min-width: 280px !important;
    }
    
    /* Header layout */
    .navbar-header {
        padding: 0 1rem 0 calc(0.75rem / 2);
        height: 70px;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    /* Element alignment */
    .header-item {
        display: flex !important;
        align-items: center !important;
        height: 70px !important;
        margin: 0 0.25rem;
    }
    
    .btn-topbar {
        height: 40px !important;
        width: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .topbar-user {
        display: flex !important;
        align-items: center !important;
        height: 70px !important;
    }
    
    /* Horizontal layout specific */
    [data-layout="horizontal"] .navbar-brand-box {
        display: none !important;
    }
    
    [data-layout="horizontal"] .topnav-hamburger {
        display: flex !important;
        align-items: center !important;
        order: -1 !important;
        margin-right: 1rem !important;
        height: 70px !important;
    }
    
    [data-layout="horizontal"] .app-search {
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        order: 1 !important;
    }
}

/* LARGE TABLET (900px - 1024px) */
@media (min-width: 900px) and (max-width: 1024px) {
    /* Search behavior */
    .app-search.d-none.d-md-block {
        display: block !important;
        order: 1 !important;
    }
    
    .d-md-none {
        display: none !important;
    }
    
    .header-item.d-none.d-sm-flex {
        display: flex !important;
    }
    
    /* Search bar styling */
    .app-search {
        padding: 10px 0 0 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .app-search .form-control {
        width: 320px !important;
        min-width: 320px !important;
        height: 38px !important;
        border: none;
        padding-left: 40px;
        padding-right: 30px;
        background-color: var(--vz-topbar-search-bg);
        box-shadow: none;
    }
    
    .app-search .dropdown-menu {
        width: 320px !important;
        min-width: 320px !important;
    }
    
    /* Header layout */
    .navbar-header {
        padding: 0 1.25rem 0 calc(1rem / 2);
        height: 70px;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    /* Element alignment */
    .header-item {
        display: flex !important;
        align-items: center !important;
        height: 70px !important;
        margin: 0 0.25rem;
    }
    
    .btn-topbar {
        height: 42px !important;
        width: 42px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .topbar-user {
        display: flex !important;
        align-items: center !important;
        height: 70px !important;
    }
    
    /* Horizontal layout specific */
    [data-layout="horizontal"] .navbar-brand-box {
        display: none !important;
    }
    
    [data-layout="horizontal"] .topnav-hamburger {
        display: flex !important;
        align-items: center !important;
        order: -1 !important;
        margin-right: 1rem !important;
        height: 70px !important;
    }
    
    [data-layout="horizontal"] .app-search {
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        order: 1 !important;
    }
}

/* TRANSITION DESKTOP (992px - 1024px) */
@media (min-width: 992px) and (max-width: 1024px) {
    /* Search bar fine-tuning */
    .app-search {
        padding: 10px 0 0 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .app-search .form-control {
        width: 340px !important;
        min-width: 340px !important;
        height: 38px !important;
    }
    
    .app-search .dropdown-menu {
        width: 340px !important;
        min-width: 340px !important;
    }
    
    /* Element alignment */
    .header-item {
        display: flex !important;
        align-items: center !important;
        height: 70px !important;
        margin: 0 0.25rem;
    }
    
    /* Horizontal layout with logo */
    [data-layout="horizontal"] .navbar-brand-box.horizontal-logo {
        width: auto !important;
    }
    
    [data-layout="horizontal"] .navbar-brand-box:not(.horizontal-logo) {
        display: none !important;
    }
    
    [data-layout="horizontal"] .topnav-hamburger {
        display: flex !important;
        align-items: center !important;
        order: -1 !important;
        margin-right: 1rem !important;
        height: 70px !important;
    }
    
    [data-layout="horizontal"] .app-search {
        order: 1 !important;
    }
}

/* DESKTOP LAYOUTS (1025px+) */

/* Small desktop (1025px - 1199px) */
@media (min-width: 1025px) and (max-width: 1199px) {
    .app-search .form-control {
        width: 350px !important;
        min-width: 350px !important;
        height: 38px !important;
    }
    
    .app-search .dropdown-menu {
        width: 350px !important;
        min-width: 350px !important;
    }
    
    /* Horizontal layout with logo */
    [data-layout="horizontal"] .navbar-brand-box.horizontal-logo {
        display: inline-block !important;
        width: auto !important;
    }
    
    [data-layout="horizontal"] .navbar-brand-box:not(.horizontal-logo) {
        display: none !important;
    }
    
    [data-layout="horizontal"] .topnav-hamburger {
        display: flex !important;
        align-items: center !important;
        order: -1 !important;
        margin-right: 1rem !important;
        height: 70px !important;
    }
    
    [data-layout="horizontal"] .app-search {
        order: 1 !important;
    }
}

/* Medium desktop (1200px - 1299px) */
@media (min-width: 1200px) and (max-width: 1299px) {
    .app-search .form-control {
        width: 380px !important;
        min-width: 380px !important;
        height: 38px !important;
    }
    
    .app-search .dropdown-menu {
        width: 380px !important;
        min-width: 380px !important;
    }
    
    /* Horizontal layout with logo */
    [data-layout="horizontal"] .navbar-brand-box.horizontal-logo {
        display: inline-block !important;
        width: auto !important;
    }
    
    [data-layout="horizontal"] .navbar-brand-box:not(.horizontal-logo) {
        display: none !important;
    }
    
    [data-layout="horizontal"] .topnav-hamburger {
        display: flex !important;
        align-items: center !important;
        order: -1 !important;
        margin-right: 1rem !important;
        height: 70px !important;
    }
    
    [data-layout="horizontal"] .app-search {
        order: 1 !important;
    }
}

/* Large desktop (1300px - 1400px) */
@media (min-width: 1300px) and (max-width: 1400px) {
    .app-search .form-control {
        width: 420px !important;
        min-width: 420px !important;
        height: 38px !important;
    }
    
    .app-search .dropdown-menu {
        width: 420px !important;
        min-width: 420px !important;
    }
    
    /* Horizontal layout with logo */
    [data-layout="horizontal"] .navbar-brand-box.horizontal-logo {
        display: inline-block !important;
        width: auto !important;
    }
    
    [data-layout="horizontal"] .navbar-brand-box:not(.horizontal-logo) {
        display: none !important;
    }
    
    [data-layout="horizontal"] .topnav-hamburger {
        display: flex !important;
        align-items: center !important;
        order: -1 !important;
        margin-right: 1rem !important;
        height: 70px !important;
    }
    
    [data-layout="horizontal"] .app-search {
        order: 1 !important;
    }
}

/* ===========================================
   ADMIN BUTTON STYLES
   =========================================== */

/* Compact reload as admin button (until 1130px) */
@media (max-width: 1130px) {
    .return-to-original-user .return-user-text {
        display: none !important;
    }
    
    .return-to-original-user::after {
        content: "⋯" !important;
        font-size: 1.2rem !important;
        margin-left: 0.25rem !important;
    }
    
    .return-to-original-user {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.8rem !important;
        min-width: auto !important;
        width: auto !important;
    }
}

/* Show full text on large screens */
@media (min-width: 1131px) {
    .return-to-original-user .return-user-text {
        display: inline !important;
    }
    
    .return-to-original-user::after {
        content: "" !important;
    }
}

/* ===========================================
   MODAL STYLES
   =========================================== */

.modal-dialog:not(.modal-dialog-scrollable) .modal-header {
    padding-bottom: 20px;
}

/* ===========================================
   DARK MODE OVERRIDES
   =========================================== */

/* Text primary color in dark mode */
html[data-layout-mode="dark"] body .text-primary,
html[data-layout-mode="dark"] .text-primary,
[data-layout-mode="dark"] h4.text-primary,
[data-layout-mode="dark"] .text-primary {
    --vz-primary-rgb: 110, 168, 254 !important;
    color: rgb(110, 168, 254) !important;
}

/* Button and link colors in dark mode */
[data-layout-mode="dark"] .btn-link,
[data-layout-mode="dark"] .btn-link.text-primary,
[data-layout-mode="dark"] a.text-primary,
[data-layout-mode="dark"] .link-primary,
[data-layout-mode="dark"] .btn-soft-primary {
    --vz-primary-rgb: 110, 168, 254 !important;
    color: rgb(110, 168, 254) !important;
}

/* ===========================================
   AUTH PAGE STYLES
   =========================================== */

/* Logo display on login page */
.auth-one-bg img {
    background: transparent !important;
    object-fit: contain !important;
    max-width: 200px !important;
    height: auto !important;
}

.auth-one-bg a {
    display: inline-block !important;
    background: transparent !important;
    max-width: 200px !important;
}

.auth-one-bg .mb-4 {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* ===========================================
   PROFILE PAGE DARK MODE
   =========================================== */

/* Profile cards */
[data-layout-mode="dark"] .profile-dashboard-card,
[data-layout-mode="dark"] .profile-dashboard-card .card-body {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

[data-layout-mode="dark"] .profile-dashboard-card .card-header {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%) !important;
    border-color: #4b5563 !important;
    color: #f9fafb !important;
}

[data-layout-mode="dark"] .profile-dashboard-card h4,
[data-layout-mode="dark"] .profile-dashboard-card h5,
[data-layout-mode="dark"] .profile-dashboard-card h6 {
    color: #f9fafb !important;
}

[data-layout-mode="dark"] .profile-dashboard-card .text-muted {
    color: #94a3b8 !important;
}

[data-layout-mode="dark"] .profile-dashboard-card .fw-medium {
    color: #e2e8f0 !important;
}

/* Profile tables */
[data-layout-mode="dark"] .profile-dashboard-card .table {
    color: #e2e8f0 !important;
}

[data-layout-mode="dark"] .profile-dashboard-card .table th,
[data-layout-mode="dark"] .profile-dashboard-card .table td {
    color: #e2e8f0 !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

[data-layout-mode="dark"] .profile-dashboard-card .table-light {
    background-color: #374151 !important;
    color: #e2e8f0 !important;
}

[data-layout-mode="dark"] .profile-dashboard-card .table-light th {
    background-color: #374151 !important;
    color: #e2e8f0 !important;
    border-color: #4b5563 !important;
}

/* Recent orders and transactions tables */
[data-layout-mode="dark"] .table-responsive .table {
    color: #e2e8f0 !important;
}

[data-layout-mode="dark"] .table-responsive .table th,
[data-layout-mode="dark"] .table-responsive .table td {
    color: #e2e8f0 !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

[data-layout-mode="dark"] .table-responsive .table-light {
    background-color: #374151 !important;
}

[data-layout-mode="dark"] .table-responsive .table-light th {
    background-color: #374151 !important;
    color: #e2e8f0 !important;
    border-color: #4b5563 !important;
}

[data-layout-mode="dark"] .table-responsive .table-borderless th,
[data-layout-mode="dark"] .table-responsive .table-borderless td {
    border-color: transparent !important;
}

/* Profile stats cards */
[data-layout-mode="dark"] .client-dashboard-row .card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

[data-layout-mode="dark"] .client-dashboard-row .card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    border-color: #475569 !important;
}

[data-layout-mode="dark"] .client-dashboard-row .card-body {
    background: transparent !important;
    color: #e2e8f0 !important;
}

[data-layout-mode="dark"] .client-dashboard-row .card-header {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%) !important;
    border-color: #4b5563 !important;
    color: #f9fafb !important;
}

[data-layout-mode="dark"] .client-dashboard-row .card-title {
    color: #f9fafb !important;
}

[data-layout-mode="dark"] .client-dashboard-row .text-uppercase {
    color: #94a3b8 !important;
}

[data-layout-mode="dark"] .client-dashboard-row .counter-value,
[data-layout-mode="dark"] .client-dashboard-row h4 {
    color: #e2e8f0 !important;
}

/* Profile avatars and badges */
[data-layout-mode="dark"] .avatar-title.bg-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: white !important;
}

[data-layout-mode="dark"] .badge.bg-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: white !important;
}

[data-layout-mode="dark"] .badge.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
}

[data-layout-mode="dark"] .badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
}

[data-layout-mode="dark"] .badge.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
}

[data-layout-mode="dark"] .badge.bg-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    color: white !important;
}

/* Profile buttons */
[data-layout-mode="dark"] .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border-color: #3b82f6 !important;
    color: white !important;
}

[data-layout-mode="dark"] .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    border-color: #2563eb !important;
    transform: translateY(-1px) !important;
}

[data-layout-mode="dark"] .btn-outline-primary {
    background: transparent !important;
    border-color: #3b82f6 !important;
    color: #60a5fa !important;
}

[data-layout-mode="dark"] .btn-outline-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border-color: #3b82f6 !important;
    color: white !important;
}

[data-layout-mode="dark"] .btn-outline-secondary {
    background: transparent !important;
    border-color: #6b7280 !important;
    color: #9ca3af !important;
}

[data-layout-mode="dark"] .btn-outline-secondary:hover {
    background: #6b7280 !important;
    border-color: #6b7280 !important;
    color: white !important;
}

[data-layout-mode="dark"] .btn-soft-primary {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #60a5fa !important;
}

[data-layout-mode="dark"] .btn-soft-primary:hover {
    background: rgba(59, 130, 246, 0.25) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    color: #60a5fa !important;
}

[data-layout-mode="dark"] .btn-soft-success {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #34d399 !important;
}

[data-layout-mode="dark"] .btn-soft-success:hover {
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #34d399 !important;
}

/* Profile links */
[data-layout-mode="dark"] .link-primary {
    color: #60a5fa !important;
}

[data-layout-mode="dark"] .link-primary:hover {
    color: #3b82f6 !important;
}

/* Empty states */
[data-layout-mode="dark"] .avatar-xl .avatar-title.bg-soft-primary {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
}

[data-layout-mode="dark"] .avatar-xl .avatar-title.bg-soft-success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
}

[data-layout-mode="dark"] .avatar-md .avatar-title.bg-soft-primary {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
}

/* Profile border styles */
[data-layout-mode="dark"] .border-top-dashed {
    border-top-color: rgba(148, 163, 184, 0.3) !important;
}

[data-layout-mode="dark"] .card.profile-dashboard-card .border-top-dashed {
    border-top-color: rgba(148, 163, 184, 0.3) !important;
}

/* Transaction and order badge colors */
[data-layout-mode="dark"] .text-success {
    color: #34d399 !important;
}

[data-layout-mode="dark"] .text-danger {
    color: #f87171 !important;
}

[data-layout-mode="dark"] .text-warning {
    color: #fbbf24 !important;
}

[data-layout-mode="dark"] .text-info {
    color: #22d3ee !important;
}

[data-layout-mode="dark"] .fw-medium {
    color: #e2e8f0 !important;
}

/* Nested elements fix */
[data-layout-mode="dark"] .profile-dashboard-card .table * {
    background-color: transparent !important;
}

/* ===========================================
   LOGIN PAGE STYLES
   =========================================== */

.auth-page-wrapper .form-control {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
}

.auth-page-wrapper .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.auth-page-wrapper .form-control:focus {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    box-shadow: 0 0 0 0.3rem rgba(255, 255, 255, 0.15);
}

.auth-page-wrapper .form-label {
    color: white;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.auth-page-wrapper .form-check {
    margin-top: 0.5rem;
}

.auth-page-wrapper .form-check-input {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-page-wrapper .form-check-input:checked {
    background-color: white;
    border-color: white;
}

.auth-page-wrapper .form-check-label {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    user-select: none;
}

.auth-page-wrapper .btn-dark {
    background-color: #001f4d;
    border-color: #001f4d;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.auth-page-wrapper .btn-dark:hover {
    background-color: #001a3d;
    border-color: #001a3d;
    color: white;
}

.auth-page-wrapper .btn-light {
    color: #0088FF;
    background-color: white;
    border-color: white;
}

.auth-page-wrapper .btn-light:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

.auth-page-wrapper .text-white-50 {
    color: rgba(255, 255, 255, 0.7);
}

/* ===========================================
   REGISTER PAGE STYLES (White background)
   =========================================== */

.auth-page-wrapper.auth-bg-cover .jdform .form-label,
.auth-page-wrapper .auth-page-content .jdform .form-label {
    color: #333333;
    font-weight: 600;
    opacity: 1;
    visibility: visible;
}

.auth-page-wrapper.auth-bg-cover .jdform label.form-label,
.auth-page-wrapper .auth-page-content .jdform label.form-label {
    color: #333333;
    display: block;
    font-weight: 600;
}

.auth-page-wrapper.auth-bg-cover .jdform .form-check-label,
.auth-page-wrapper .auth-page-content .jdform .form-check-label {
    color: #555555;
    display: inline-block;
}

.auth-page-wrapper.auth-bg-cover .jdform .form-control,
.auth-page-wrapper.auth-bg-cover .jdform .form-select,
.auth-page-wrapper .auth-page-content .jdform .form-control,
.auth-page-wrapper .auth-page-content .jdform .form-select {
    background-color: rgba(255, 255, 255, 0.8);
    color: #333333;
    border: 1px solid rgba(200, 200, 200, 0.5);
}

.auth-page-wrapper.auth-bg-cover .jdform .form-control::placeholder,
.auth-page-wrapper .auth-page-content .jdform .form-control::placeholder {
    color: rgba(100, 100, 100, 0.7);
}

.auth-page-wrapper.auth-bg-cover .form-check-input,
.auth-page-wrapper .auth-page-content .form-check-input {
    border: 2px solid #333333;
    background-color: white;
}

.auth-page-wrapper.auth-bg-cover .form-check-input:checked,
.auth-page-wrapper .auth-page-content .form-check-input:checked {
    background-color: #333333;
    border-color: #333333;
}

/* ===========================================
   MODAL STYLES (Forget Password Modal)
   =========================================== */

.modal-content {
    background-color: #ffffff;
}

.modal-content .modal-header {
    background-color: #f8f9fa;
    color: #333333;
    border-color: #dee2e6;
}

.modal-content .modal-title {
    color: #333333;
    font-weight: 600;
}

.modal-content .modal-body {
    color: #333333;
}

.modal-content .form-label {
    color: #333333;
    font-weight: 500;
}

.modal-content .form-control {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #dee2e6;
}

.modal-content .form-control::placeholder {
    color: rgba(100, 100, 100, 0.7);
}

.modal-content .form-control:focus {
    background-color: #ffffff;
    color: #333333;
    border-color: #80bdff;
}

.modal-content .text-muted {
    color: #6c757d;
}

.modal-content .alert {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.modal-content .btn-light {
    background-color: #ffffff;
    color: #333333;
    border-color: #dee2e6;
}

.modal-content .btn-light:hover {
    background-color: #f0f0f0;
    color: #333333;
    border-color: #adb5bd;
}

.modal-content .btn-primary {
    background-color: #0088FF;
    border-color: #0088FF;
    color: white;
}

.modal-content .btn-primary:hover {
    background-color: #0077dd;
}

/* =============================================
   RESPONSIVE SEARCH BAR (Adapts to available space)
   ============================================= */

/* Hide search bar on small screens (max-width: 711px) */
@media (max-width: 711px) {
    .app-search.d-none.d-md-block {
        display: none !important;
    }
}

/* First navbar flex container - make it flex for proper space distribution */
.navbar-header > .d-flex:first-child {
    flex: 1;
    min-width: 0;
    gap: 1rem;
    align-items: center;
}

/* Search bar - grows to fill available space with max limits */
.app-search {
    flex: 1;
    min-width: 0;
    max-width: none;
    display: flex !important;
    align-items: center !important;
}

.app-search .position-relative {
    width: 100%;
    min-width: 200px;
}

.app-search .form-control {
    width: 100% !important;
    min-width: 200px !important;
    max-width: 100% !important;
    height: 50px !important;
    padding: 18px 40px 18px 40px !important;
}

.app-search .dropdown-menu {
    width: 100% !important;
    min-width: 200px !important;
    max-width: 100% !important;
}

/* Override media query widths to allow flexible sizing */
@media (min-width: 876px) and (max-width: 991px) {
    .app-search .form-control {
        width: 100% !important;
        min-width: 200px !important;
        max-width: 100% !important;
    }

    .app-search .dropdown-menu {
        width: 100% !important;
        min-width: 200px !important;
        max-width: 100% !important;
    }
}

@media (min-width: 992px) and (max-width: 1024px) {
    .app-search .form-control {
        width: 100% !important;
        min-width: 250px !important;
        max-width: 100% !important;
    }

    .app-search .dropdown-menu {
        width: 100% !important;
        min-width: 250px !important;
        max-width: 100% !important;
    }
}

@media (min-width: 1025px) {
    .app-search .form-control {
        width: 100% !important;
        min-width: 300px !important;
        max-width: 100% !important;
    }

    .app-search .dropdown-menu {
        width: 100% !important;
        min-width: 300px !important;
        max-width: 100% !important;
    }
}