/* VVConnect Design System */
:root {
    --vv-primary: #8A1538;
    --vv-accent: #F3D9DC;
    --vv-gold: #C9A227;
    --vv-neutral: #2D2A32;
    --vv-light: #f8f9fa;
    --vv-dark: #212529;
    --vv-success: #28a745;
    --vv-warning: #ffc107;
    --vv-danger: #dc3545;
    --vv-info: #17a2b8;
}

/* VV Card Components */
.vv-card {
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
    border: 1px solid rgba(0,0,0,.08);
    background: white;
    transition: all 0.3s ease;
}

.vv-card:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
    transform: translateY(-2px);
}

.vv-card-header {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    color: white;
    border-radius: 1rem 1rem 0 0;
    padding: 1.25rem;
    border: none;
}

.vv-card-body {
    padding: 1.5rem;
}

/* VV Pills and Badges */
.vv-pill {
    border-radius: 2rem;
    padding: .25rem .75rem;
    font-weight: 600;
    font-size: .875rem;
    display: inline-block;
    text-align: center;
}

.vv-pill-primary { background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178)); color: white; }
.vv-pill-accent { background: var(--vv-accent); color: var(--vv-neutral); }
.vv-pill-gold { background: var(--vv-gold); color: white; }
.vv-pill-success { background: var(--vv-success); color: white; }
.vv-pill-warning { background: var(--vv-warning); color: var(--vv-dark); }
.vv-pill-danger { background: var(--vv-danger); color: white; }

/* Status Pills */
.vv-pill-pending { background: #ffeaa7; color: #2d3436; }
.vv-pill-approved { background: #00b894; color: white; }
.vv-pill-rejected { background: #e17055; color: white; }
.vv-pill-active { background: #00cec9; color: white; }
.vv-pill-inactive { background: #636e72; color: white; }
.vv-pill-blocked { background: #d63031; color: white; }
.vv-pill-success { background: #00b894; color: white; }

/* Match Status Pills */
.vv-pill-proposed { background: #74b9ff; color: white; }
.vv-pill-viewed { background: #a29bfe; color: white; }
.vv-pill-interested { background: #fd79a8; color: white; }
.vv-pill-ignored { background: #636e72; color: white; }
.vv-pill-mutual_interest { background: #e84393; color: white; }
.vv-pill-connected { background: #00b894; color: white; }

/* VV Buttons */
.vv-btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.vv-btn-primary {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    color: white;
}

.vv-btn-primary:hover {
    background: #6d1129;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(138, 21, 56, 0.3);
}

.vv-btn-accent {
    background: var(--vv-accent);
    color: var(--vv-neutral);
}

.vv-btn-gold {
    background: var(--vv-gold);
    color: white;
}

.vv-btn-outline-primary {
    background: transparent;
    color: var(--vv-primary);
    border: 2px solid var(--vv-primary);
}

.vv-btn-outline-primary:hover {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    color: white;
}

/* VV Tables */
.vv-table {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.vv-table thead th {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.vv-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.vv-table tbody tr:hover {
    background: rgba(138, 21, 56, 0.02);
}

.vv-table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* VV KPI Widgets */
.vv-kpi {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    text-align: center;
    border-left: 4px solid var(--vv-primary);
}

.vv-kpi-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--vv-primary);
    margin-bottom: 0.5rem;
}

.vv-kpi-label {
    color: var(--vv-neutral);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.vv-kpi-gold .vv-kpi-number { color: var(--vv-gold); }
.vv-kpi-gold { border-left-color: var(--vv-gold); }

.vv-kpi-success .vv-kpi-number { color: var(--vv-success); }
.vv-kpi-success { border-left-color: var(--vv-success); }

/* VV Forms */
.vv-form-control {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.vv-form-control:focus {
    border-color: var(--vv-primary);
    box-shadow: 0 0 0 0.2rem rgba(138, 21, 56, 0.25);
}

.vv-form-label {
    font-weight: 600;
    color: var(--vv-neutral);
    margin-bottom: 0.5rem;
}

/* VV Navigation */
.vv-navbar {
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    padding: 1rem 0;
}

.vv-navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--vv-primary);
    text-decoration: none;
}

.vv-nav-link {
    color: var(--vv-neutral);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.vv-nav-link:hover,
.vv-nav-link.active {
    background: rgba(147, 51, 234, 0.1);
    color: rgb(147 51 234);
}

/* VV Sidebar */
.vv-sidebar {
    background: white;
    box-shadow: 2px 0 12px rgba(0,0,0,.08);
    min-height: 100vh;
    padding: 2rem 0;
}

.vv-sidebar-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--vv-neutral);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.vv-sidebar-item:hover,
.vv-sidebar-item.active {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    color: white;
    border-left-color: rgb(147 51 234);
}

/* VV Sidebar Dropdown */
.vv-sidebar-dropdown {
    position: relative;
}

.vv-sidebar-dropdown .dropdown-toggle {
    position: relative;
}

.vv-sidebar-dropdown .dropdown-toggle::after {
    display: none; /* Hide default Bootstrap dropdown arrow */
}

.vv-sidebar-dropdown .fa-chevron-down {
    transition: transform 0.3s ease;
}

.vv-sidebar-dropdown .dropdown-toggle[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.vv-sidebar-submenu {
    background: rgba(147, 51, 234, 0.05);
    border-left: 3px solid rgb(147 51 234);
    margin-left: 1.5rem;
    margin-right: 0;
}

.vv-sidebar-subitem {
    display: block;
    padding: 0.5rem 1.5rem;
    color: var(--vv-neutral);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-left: 2px solid transparent;
}

.vv-sidebar-subitem:hover,
.vv-sidebar-subitem.active {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    color: white;
    border-left-color: rgb(147 51 234);
}

.vv-sidebar-dropdown.active > .vv-sidebar-item {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    color: white;
    border-left-color: rgb(147 51 234);
}

/* VV Match Cards */
.vv-match-card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    transition: all 0.3s ease;
    background: white;
}

.vv-match-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.15);
}

.vv-match-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.vv-match-score {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--vv-gold);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
}

/* VV Alerts */
.vv-alert {
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    border: none;
    margin-bottom: 1rem;
}

.vv-alert-primary {
    background: rgba(138, 21, 56, 0.1);
    color: var(--vv-primary);
    border-left: 4px solid var(--vv-primary);
}

.vv-alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--vv-success);
    border-left: 4px solid var(--vv-success);
}

.vv-alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 4px solid var(--vv-warning);
}

.vv-alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--vv-danger);
    border-left: 4px solid var(--vv-danger);
}

/* VV Progress */
.vv-progress {
    height: 0.75rem;
    border-radius: 2rem;
    background: #e9ecef;
    overflow: hidden;
}

.vv-progress-bar {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    height: 100%;
    border-radius: 2rem;
    transition: width 0.6s ease;
}

/* VV Loading States */
.vv-loading {
    opacity: 0.6;
    pointer-events: none;
}

.vv-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid var(--vv-primary);
    border-radius: 50%;
    animation: vv-spin 1s linear infinite;
}

@keyframes vv-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* VV Utilities */
.vv-text-primary { 
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
.vv-text-accent { color: var(--vv-accent) !important; }
.vv-text-gold { color: var(--vv-gold) !important; }
.vv-text-neutral { color: var(--vv-neutral) !important; }

/* Gender-specific icon colors */
.text-pink { color: #fd79a8 !important; }

.vv-bg-primary { background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178)) !important; }
.vv-bg-accent { background-color: var(--vv-accent) !important; }
.vv-bg-gold { background-color: var(--vv-gold) !important; }

.vv-border-primary { border-color: var(--vv-primary) !important; }
.vv-border-accent { border-color: var(--vv-accent) !important; }

/* ===== MOBILE-FIRST RESPONSIVE DESIGN ===== */

/* Base mobile styles (320px+) */
.vv-card {
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.vv-card-body {
    padding: 1rem;
}

.vv-kpi {
    padding: 1rem;
    margin-bottom: 1rem;
}

.vv-kpi-number {
    font-size: 1.75rem;
}

.vv-match-card img {
    height: 180px;
}

.vv-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

.vv-form-control {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem 1rem;
}

/* Touch-friendly interface elements */
.vv-btn, .btn {
    min-height: 44px; /* Apple's recommended touch target size */
    touch-action: manipulation;
}

.vv-sidebar-item {
    min-height: 48px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

/* ===== PWA AND MOBILE ENHANCEMENTS ===== */

/* PWA Install Button */
.pwa-install-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(138, 21, 56, 0.4);
    transition: all 0.3s ease;
    animation: pulse-install 2s infinite;
}

.pwa-install-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(138, 21, 56, 0.5);
}

.pwa-install-floating {
    position: fixed !important;
    bottom: 80px;
    right: 20px;
    z-index: 1050;
}

@keyframes pulse-install {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    display: none;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    text-decoration: none;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    min-width: 60px;
    border: none;
    background: none;
    cursor: pointer;
}

.bottom-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.bottom-nav-item.active {
    color: var(--vv-primary);
}

.bottom-nav-item.active i {
    transform: scale(1.1);
}

.bottom-nav-item.touched {
    transform: scale(0.95);
    opacity: 0.7;
}

.notification-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.75rem;
    background: var(--vv-danger);
    color: white;
    border-radius: 50%;
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
    min-width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Show mobile bottom nav on mobile devices */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    body {
        padding-bottom: 70px; /* Account for bottom nav */
    }
    
    .vv-scrollable-content {
        height: calc(100vh - 70px - 70px); /* Navbar + bottom nav */
    }
}

/* Pull to Refresh Indicator */
.pull-to-refresh-indicator {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1060;
    background: white;
    border-radius: 25px;
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    opacity: 0;
}

.pull-to-refresh-indicator.ready {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    color: white;
}

.pull-to-refresh-indicator.refreshing .pull-spinner {
    animation: spin 1s linear infinite;
}

.pull-spinner {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.pull-text {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Mobile Photo Upload Interface */
.mobile-photo-upload {
    position: relative;
    margin-bottom: 1rem;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--vv-primary);
    background: rgba(138, 21, 56, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--vv-primary);
    margin-bottom: 1rem;
}

.upload-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

.upload-actions .btn {
    flex: 1;
    max-width: 150px;
}

.upload-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.image-preview {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.preview-container {
    position: relative;
    display: inline-block;
}

.preview-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 1rem;
}

.preview-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.preview-info {
    padding: 0.5rem;
    text-align: center;
}

/* Camera Modal Styles */
.camera-modal .modal-dialog {
    margin: 0;
    max-width: 100%;
    height: 100vh;
}

.camera-modal .modal-content {
    height: 100vh;
    border-radius: 0;
}

.camera-container {
    position: relative;
    height: 100%;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-canvas {
    position: absolute;
    top: 0;
    left: 0;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-frame {
    width: 280px;
    height: 280px;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.5);
}

.camera-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    align-items: center;
}

.camera-controls .btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.btn-capture {
    width: 80px !important;
    height: 80px !important;
    font-size: 2rem !important;
}

.photo-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: black;
}

.preview-image {
    flex: 1;
    object-fit: contain;
    width: 100%;
}

.preview-controls {
    padding: 2rem;
    background: white;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.preview-controls .btn {
    flex: 1;
    max-width: 150px;
}

/* Swipe Gestures */
.swipeable {
    touch-action: pan-y;
    user-select: none;
}

.swipe-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.swipe-feedback.show {
    transform: translate(-50%, -50%) scale(1);
}

.swipe-feedback.swipe-like {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.swipe-feedback.swipe-pass {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

/* Touch Feedback */
.touch-active {
    transform: scale(0.95) !important;
    opacity: 0.8 !important;
    transition: all 0.1s ease !important;
}

/* Keyboard Open State */
.keyboard-open {
    padding-bottom: 0 !important;
}

.keyboard-open .mobile-bottom-nav {
    display: none !important;
}

/* Connection Status Toast */
.connection-status-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: 200px;
    text-align: center;
    border-radius: 25px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* PWA Installed State */
.pwa-installed .pwa-install-btn {
    display: none !important;
}

.pwa-installed.ios-pwa {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Safe Area Support for iOS */
@supports (padding: max(0px)) {
    .mobile-bottom-nav {
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    }
    
    .camera-controls {
        bottom: max(2rem, calc(2rem + env(safe-area-inset-bottom)));
    }
}

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffc107;
    color: #212529;
    text-align: center;
    padding: 0.5rem;
    font-weight: 600;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.offline-indicator.show {
    transform: translateY(0);
}

/* Enhanced Mobile Forms */
.mobile-form-group {
    margin-bottom: 1.5rem;
}

.mobile-form-label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
    color: var(--vv-primary);
}

.mobile-form-control {
    font-size: 16px !important; /* Prevent zoom on iOS */
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    width: 100%;
}

.mobile-form-control:focus {
    border-color: var(--vv-primary);
    box-shadow: 0 0 0 0.2rem rgba(138, 21, 56, 0.15);
    transform: translateY(-1px);
}

/* Mobile Match Cards */
.mobile-match-stack {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin: 1rem 0;
}

.mobile-match-card {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 350px;
    height: 550px;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    cursor: grab;
    transition: all 0.3s ease;
}

.mobile-match-card:active {
    cursor: grabbing;
}

.mobile-match-card img {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

.mobile-match-info {
    padding: 1.5rem;
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-match-actions {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.mobile-match-actions .btn {
    flex: 1;
    border-radius: 50px;
    padding: 0.75rem;
    font-weight: 600;
}

/* Swipe Indicators */
.swipe-like-indicator,
.swipe-pass-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

.swipe-like-indicator {
    right: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: 3px solid white;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.4);
}

.swipe-pass-indicator {
    left: 20px;
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
    border: 3px solid white;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
}

/* Enhanced Touch Feedback */
.touch-active {
    transform: scale(0.98) !important;
    opacity: 0.9 !important;
    transition: all 0.1s ease !important;
}

/* Haptic Feedback Classes */
.haptic-light { /* For light touches */ }
.haptic-medium { /* For medium interactions */ }
.haptic-heavy { /* For important actions */ }

/* Low Battery Mode */
.low-battery * {
    animation-duration: 2s !important;
    transition-duration: 0.1s !important;
}

.low-battery .vv-spinner {
    animation-duration: 2s !important;
}

/* Device-specific styles */
.ios-device {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
}

.android-device .vv-btn {
    -webkit-tap-highlight-color: rgba(138, 21, 56, 0.2);
}

/* Enhanced mobile forms */
.mobile-device .form-control:focus {
    transform: none; /* Disable transform on mobile to prevent layout issues */
}

.mobile-device .vv-form-control:focus {
    transform: none;
}

/* Improved touch targets for mobile */
@media (max-width: 768px) {
    .btn-sm {
        min-height: 40px;
        padding: 0.5rem 1rem;
    }
    
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.25rem;
    }
    
    .btn-lg {
        min-height: 48px;
        padding: 1rem 1.5rem;
    }
    
    /* Larger touch targets for links */
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Better spacing for mobile */
    .vv-card {
        margin-bottom: 1.5rem;
    }
    
    .vv-match-card {
        margin-bottom: 1.5rem;
    }
}

/* Accessibility improvements for mobile */
@media (prefers-reduced-motion: reduce) {
    .swipe-feedback,
    .touch-active,
    .mobile-match-card {
        animation: none !important;
        transition: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .swipe-like-indicator,
    .swipe-pass-indicator {
        border-width: 4px;
        box-shadow: none;
    }
    
    .mobile-bottom-nav {
        border-top-width: 2px;
    }
}

/* Mobile navigation enhancements */
.vv-mobile-nav-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    border: none;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(138, 21, 56, 0.4);
    transition: all 0.3s ease;
}

.vv-mobile-nav-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(138, 21, 56, 0.5);
}

/* Mobile-first table responsiveness */
.vv-table-mobile {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

.vv-table-mobile thead {
    display: none;
}

.vv-table-mobile tbody,
.vv-table-mobile tr,
.vv-table-mobile td {
    display: block;
    width: 100%;
}

.vv-table-mobile tr {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
}

.vv-table-mobile td {
    border: none;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 40%;
}

.vv-table-mobile td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 35%;
    font-weight: 600;
    color: var(--vv-primary);
}

/* Mobile form enhancements */
.vv-form-group {
    margin-bottom: 1.5rem;
}

.vv-form-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* Mobile card stack */
.vv-card-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Mobile match cards */
.vv-match-card-mobile {
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    background: white;
    margin-bottom: 1rem;
}

.vv-match-card-mobile .match-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.vv-match-card-mobile .match-content {
    padding: 1rem;
}

.vv-match-card-mobile .match-actions {
    padding: 0 1rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.vv-match-card-mobile .match-actions .btn {
    flex: 1;
    margin-bottom: 0;
}

/* Small mobile (375px+) */
@media (min-width: 375px) {
    .vv-kpi-number {
        font-size: 2rem;
    }
    
    .vv-btn {
        width: auto;
        display: inline-block;
        margin-right: 0.5rem;
    }
    
    .vv-match-card img {
        height: 200px;
    }
}

/* Large mobile (425px+) */
@media (min-width: 425px) {
    .vv-card-body {
        padding: 1.25rem;
    }
    
    .vv-kpi {
        padding: 1.25rem;
    }
    
    .vv-form-control {
        padding: 0.875rem 1rem;
    }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    .vv-card {
        border-radius: 1rem;
    }
    
    .vv-card-body {
        padding: 1.5rem;
    }
    
    .vv-kpi {
        padding: 1.5rem;
    }
    
    .vv-kpi-number {
        font-size: 2.5rem;
    }
    
    .vv-match-card img {
        height: 220px;
    }
    
    .vv-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Show desktop table on tablet+ */
    .vv-table-mobile {
        display: table;
    }
    
    .vv-table-mobile thead {
        display: table-header-group;
    }
    
    .vv-table-mobile tbody,
    .vv-table-mobile tr,
    .vv-table-mobile td {
        display: table-row-group;
    }
    
    .vv-table-mobile tr {
        display: table-row;
        border: none;
        margin-bottom: 0;
        padding: 0;
        background: transparent;
    }
    
    .vv-table-mobile td {
        display: table-cell;
        padding: 1rem;
        padding-left: 1rem;
    }
    
    .vv-table-mobile td:before {
        display: none;
    }
    
    /* Hide mobile nav toggle on tablet+ */
    .vv-mobile-nav-toggle {
        display: none;
    }
    
    /* Switch to horizontal card layout */
    .vv-match-card-mobile {
        flex-direction: row;
        align-items: center;
    }
    
    .vv-match-card-mobile .match-image {
        width: 200px;
        height: 150px;
        flex-shrink: 0;
    }
    
    .vv-match-card-mobile .match-content {
        flex: 1;
        padding: 1rem 1.5rem;
    }
    
    .vv-match-card-mobile .match-actions {
        padding: 1rem;
        flex-direction: column;
        width: 150px;
        flex-shrink: 0;
    }
    
    .vv-match-card-mobile .match-actions .btn {
        margin-bottom: 0.5rem;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .vv-card-body {
        padding: 2rem;
    }
    
    .vv-kpi {
        padding: 2rem;
    }
    
    .vv-match-card img {
        height: 250px;
    }
    
    /* Grid layouts for desktop */
    .vv-card-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .vv-match-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Large desktop (1440px+) */
@media (min-width: 1440px) {
    .vv-match-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2rem;
    }
    
    .vv-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
}/* P
rogress Circle Component */
.vv-progress-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(var(--vv-primary) calc(var(--percentage, 0) * 1%), #e9ecef 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
}

.vv-progress-circle::before {
    content: '';
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    position: absolute;
}

.vv-progress-circle span {
    position: relative;
    z-index: 1;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--vv-primary);
}

/* Match Status Pills */
.vv-pill-proposed {
    background-color: var(--vv-warning);
    color: white;
}

.vv-pill-viewed {
    background-color: var(--vv-info);
    color: white;
}

.vv-pill-interested {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    color: white;
}

.vv-pill-mutual_interest {
    background-color: var(--vv-success);
    color: white;
}

.vv-pill-connected {
    background-color: var(--vv-gold);
    color: white;
}

.vv-pill-ignored {
    background-color: var(--vv-neutral);
    color: white;
}

.vv-pill-active {
    background-color: var(--vv-success);
    color: white;
}

.vv-pill-inactive {
    background-color: var(--vv-neutral);
    color: white;
}

.vv-pill-blocked {
    background-color: var(--vv-danger);
    color: white;
}

.vv-pill-success {
    background-color: var(--vv-gold);
    color: white;
}

/* Match Card Enhancements */
.vv-match-card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.vv-match-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    transform: translateY(-3px);
}

.vv-match-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.vv-match-score {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(138, 21, 56, 0.9);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Alert Components */
.vv-alert {
    border-radius: 0.75rem;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.vv-alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--vv-success);
    border-left: 4px solid var(--vv-success);
}

.vv-alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--vv-danger);
    border-left: 4px solid var(--vv-danger);
}

/* Spinner Component */
.vv-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Enhancements */
.vv-form-label {
    font-weight: 600;
    color: var(--vv-neutral);
    margin-bottom: 0.5rem;
}

.vv-form-control {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.vv-form-control:focus {
    border-color: var(--vv-primary);
    box-shadow: 0 0 0 0.2rem rgba(138, 21, 56, 0.25);
}/* Side
bar disabled state */
.vv-sidebar-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.vv-sidebar-item.disabled:hover {
    background-color: transparent;
    color: inherit;
}

.vv-sidebar-item.disabled small {
    font-size: 0.7rem;
    opacity: 0.8;
}/* Enhanc
ed Card Styles for Beautiful Headers */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

/* Enhanced Gradient Cards */
.card.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

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

.card.bg-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}

.card.bg-info {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
}

.card.bg-dark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

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

/* Enhanced Button Styles */
.btn {
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Enhanced Alert Styles */
.alert {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Enhanced Form Controls */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--vv-primary);
    box-shadow: 0 0 0 0.2rem rgba(138, 21, 56, 0.25);
}

/* Enhanced Table Styles */
.table {
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(138, 21, 56, 0.05);
    transform: scale(1.01);
}

/* Enhanced Badge Styles */
.badge {
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Enhanced Progress Bars */
.progress {
    border-radius: 10px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* Enhanced Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 2px solid #f8f9fa;
    border-radius: 15px 15px 0 0;
}

/* Enhanced Dropdown Styles */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    color: white;
}

/* Enhanced Pagination */
.pagination {
    margin-bottom: 0;
    justify-content: center;
}

.pagination .page-item {
    margin: 0 2px;
}

.pagination .page-link {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    color: var(--vv-primary);
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    position: relative;
    background: white;
    min-width: 40px;
    text-align: center;
}

.pagination .page-link:hover {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    color: white;
    border-color: rgb(147 51 234);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 21, 56, 0.3);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    border-color: rgb(147 51 234);
    color: white;
    box-shadow: 0 4px 12px rgba(138, 21, 56, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

/* Pagination Arrow Styling */
.pagination .page-link[aria-label="Previous"],
.pagination .page-link[aria-label="Next"] {
    font-weight: 600;
    padding: 0.5rem 0.75rem;
}

.pagination .page-link[aria-label="Previous"]:before {
    content: "‹";
    font-size: 1.2rem;
    font-weight: bold;
}

.pagination .page-link[aria-label="Next"]:before {
    content: "›";
    font-size: 1.2rem;
    font-weight: bold;
}

/* Hide default arrow text and show custom arrows */
.pagination .page-link[aria-label="Previous"] span,
.pagination .page-link[aria-label="Next"] span {
    display: none;
}

/* First and Last page arrows */
.pagination .page-link[aria-label="First"]:before {
    content: "«";
    font-size: 1.2rem;
    font-weight: bold;
}

.pagination .page-link[aria-label="Last"]:before {
    content: "»";
    font-size: 1.2rem;
    font-weight: bold;
}

.pagination .page-link[aria-label="First"] span,
.pagination .page-link[aria-label="Last"] span {
    display: none;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.875rem;
        min-width: 35px;
    }
    
    .pagination .page-item {
        margin: 0 1px;
    }
}

@media (max-width: 576px) {
    .pagination .page-link {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
        min-width: 30px;
    }
    
    /* Hide page numbers on very small screens, keep only arrows */
    .pagination .page-item:not(.disabled):not(.active) {
        display: none;
    }
    
    .pagination .page-item.active,
    .pagination .page-item.disabled,
    .pagination .page-item:first-child,
    .pagination .page-item:last-child {
        display: block;
    }
}

/* Enhanced Navbar */
.navbar {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178)) !important;
}

.shadow-soft {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.shadow-strong {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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

/* Responsive Enhancements */
@media (max-width: 768px) {
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        border-radius: 12px;
    }
}/* =====
 RESPONSIVE DESIGN ENHANCEMENTS ===== */

/* Mobile Sidebar */
.vv-mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    z-index: 1040;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,.15);
    background: white;
    overflow-y: auto;
}

.vv-mobile-sidebar.show {
    left: 0;
}

.vv-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1035;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vv-sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive Navbar */
@media (max-width: 991.98px) {
    .vv-navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-collapse {
        background: white;
        border-radius: 15px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(138, 21, 56, 0.1);
    }
    
    .vv-nav-link {
        margin: 0.25rem 0;
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }
    
    .navbar-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: 1px solid rgba(138, 21, 56, 0.1);
        margin-top: 0.5rem;
    }
}

/* Mobile Sidebar Content */
@media (max-width: 991.98px) {
    .vv-mobile-sidebar .vv-sidebar {
        box-shadow: none;
        min-height: auto;
        padding: 1rem 0;
    }
    
    .vv-mobile-sidebar .vv-sidebar-item {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .vv-mobile-sidebar .vv-sidebar h6 {
        padding: 0 1.5rem;
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
    }
}

/* Tablet Responsive */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .vv-navbar-brand {
        font-size: 1.25rem;
    }
    
    .notification-dropdown,
    .user-dropdown {
        width: 90vw;
        max-width: 300px;
    }
    
    .vv-card-body {
        padding: 1rem;
    }
    
    .vv-kpi {
        padding: 1rem;
    }
    
    .vv-kpi-number {
        font-size: 2rem;
    }
    
    .vv-match-card img {
        height: 150px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .vv-mobile-sidebar {
        width: 100vw;
    }
    
    .vv-navbar {
        padding: 0.5rem 0;
    }
    
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .vv-navbar-brand {
        font-size: 1.1rem;
    }
    
    .vv-card-body {
        padding: 0.75rem;
    }
    
    .vv-kpi {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .vv-kpi-number {
        font-size: 1.75rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.5rem;
        border-radius: 0.5rem !important;
    }
}

/* Enhanced Mobile Menu Button */
#openSidebar {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(138, 21, 56, 0.3);
    transition: all 0.3s ease;
}

#openSidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(138, 21, 56, 0.4);
}

/* Mobile Sidebar Header */
.vv-mobile-sidebar .border-bottom {
    border-color: rgba(138, 21, 56, 0.1) !important;
}

#closeSidebar {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

#closeSidebar:hover {
    background-color: var(--vv-danger);
    border-color: var(--vv-danger);
    color: white;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .table-responsive {
        border-radius: 12px;
    }
    
    .vv-table {
        font-size: 0.875rem;
    }
    
    .vv-table thead th,
    .vv-table tbody td {
        padding: 0.75rem 0.5rem;
    }
}

/* Responsive Forms */
@media (max-width: 576px) {
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
}

/* Responsive Alerts */
@media (max-width: 576px) {
    .vv-alert {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Print Styles */
@media print {
    .vv-navbar,
    .vv-sidebar,
    .vv-mobile-sidebar,
    .vv-sidebar-overlay,
    #openSidebar,
    .btn,
    .dropdown {
        display: none !important;
    }
    
    .container-fluid {
        padding: 0 !important;
    }
    
    .col-lg-10 {
        width: 100% !important;
        max-width: 100% !important;
    }
}/* 
===== ENHANCED NAVBAR STYLES ===== */

/* Brand Enhancements */
.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(138, 21, 56, 0.3);
    transition: all 0.3s ease;
}

.vv-navbar-brand:hover .brand-icon {
    transform: scale(1.1) rotate(5deg);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* User Avatar */
.user-avatar {
    position: relative;
}

.avatar-placeholder,
.avatar-placeholder-lg {
    width: 32px;
    height: 32px;
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

.avatar-placeholder-lg {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.user-info {
    text-align: left;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.2;
}

.user-role {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Notification Badge */
.notification-badge {
    font-size: 0.6rem !important;
    padding: 0.2rem 0.4rem !important;
    top: -0.3rem !important;
    left: 0.8rem !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Notification Dropdown */
.notification-dropdown {
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: rgba(138, 21, 56, 0.05);
}

/* User Dropdown */
.user-dropdown {
    width: 280px;
}

.user-dropdown .dropdown-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(138, 21, 56, 0.05) 0%, rgba(243, 217, 220, 0.3) 100%);
    border-radius: 12px 12px 0 0;
    margin: -0.5rem -0.5rem 0.5rem -0.5rem;
}

/* Enhanced Navbar */
.vv-navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(138, 21, 56, 0.1);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.vv-nav-link {
    color: var(--vv-neutral);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    margin: 0 0.25rem;
}

.vv-nav-link:hover {
    background: linear-gradient(135deg, var(--vv-accent) 0%, rgba(243, 217, 220, 0.8) 100%);
    color: var(--vv-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 21, 56, 0.15);
}

.vv-nav-link.active {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    color: white;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.vv-nav-link.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 21, 56, 0.4);
}

/* Navbar Dropdown Enhancements */
.navbar-nav .dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 1rem 0;
    margin-top: 0.5rem;
    background: white;
    backdrop-filter: blur(10px);
}

.navbar-nav .dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 0;
    font-weight: 500;
}

.navbar-nav .dropdown-item:hover {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    color: white;
    transform: translateX(5px);
}

.navbar-nav .dropdown-header {
    font-weight: 700;
    color: var(--vv-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    padding: 0.5rem 1.5rem;
}

.navbar-nav .dropdown-divider {
    margin: 0.5rem 1rem;
    border-color: rgba(138, 21, 56, 0.1);
}

/* Mobile Navigation */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(138, 21, 56, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%238A1538' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .brand-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .brand-text {
        font-size: 1.25rem;
    }
    
    .user-info {
        display: none !important;
    }
    
    .notification-dropdown,
    .user-dropdown {
        width: 90vw;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .brand-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
}
/* =====
 FIXED LAYOUT SYSTEM ===== */

/* Main layout container */
.vv-layout-container {
    display: flex;
    position: relative;
    min-height: 0; /* Important for flex child */
}

/* Fixed Sidebar */
.vv-sidebar-fixed {
    position: fixed;
    top: 76px; /* Adjust based on navbar height */
    left: 0;
    width: 280px;
    height: calc(100vh - 76px - 45px); /* Subtract navbar and footer height */
    background: white;
    box-shadow: 2px 0 12px rgba(0,0,0,.08);
    z-index: 1020;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Content area with sidebar */
.vv-content-with-sidebar {
    margin-left: 280px; /* Same as sidebar width */
    width: calc(100% - 280px);
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 76px - 45px); /* Subtract navbar and footer height */
}

/* Content area without sidebar */
.vv-content-full {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 76px - 45px); /* Subtract navbar and footer height */
}

/* Scrollable content area */
.vv-scrollable-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 76px - 45px); /* Subtract navbar and footer height */
}

/* Fixed Footer */
footer {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1010;
    margin-top: 0 !important;
    background: white !important;
    border-top: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* Navbar adjustments for fixed layout */
.vv-navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    margin-bottom: 0;
}

/* Body padding to account for fixed navbar */
body {
    padding-top: 76px; /* Adjust based on navbar height */
    padding-bottom: 45px; /* Adjust based on footer height */
}

/* Sidebar content styling */
.vv-sidebar-fixed .vv-sidebar {
    box-shadow: none;
    min-height: 100%;
    padding: 1rem 0;
    background: transparent;
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
    .vv-content-with-sidebar {
        margin-left: 0;
        width: 100%;
    }
    
    .vv-sidebar-fixed {
        display: none !important;
    }
    
    body {
        padding-top: 70px; /* Smaller navbar on mobile */
        padding-bottom: 40px; /* Smaller footer on mobile */
    }
    
    .vv-scrollable-content {
        height: calc(100vh - 70px - 40px);
    }
    
    .vv-content-with-sidebar,
    .vv-content-full {
        min-height: calc(100vh - 70px - 40px);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 65px;
        padding-bottom: 35px;
    }
    
    .vv-scrollable-content {
        height: calc(100vh - 65px - 35px);
    }
    
    .vv-content-with-sidebar,
    .vv-content-full {
        min-height: calc(100vh - 65px - 35px);
    }
}

/* Smooth scrolling for content areas */
.vv-scrollable-content {
    scroll-behavior: smooth;
}

/* Custom scrollbar for webkit browsers */
.vv-scrollable-content::-webkit-scrollbar {
    width: 6px;
}

.vv-scrollable-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.vv-scrollable-content::-webkit-scrollbar-thumb {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    border-radius: 3px;
    opacity: 0.7;
}

.vv-scrollable-content::-webkit-scrollbar-thumb:hover {
    background: #6d1129;
    opacity: 1;
}

/* Sidebar scrollbar */
.vv-sidebar-fixed::-webkit-scrollbar {
    width: 4px;
}

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

.vv-sidebar-fixed::-webkit-scrollbar-thumb {
    background: rgba(138, 21, 56, 0.3);
    border-radius: 2px;
}

.vv-sidebar-fixed::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 21, 56, 0.5);
}

/* Ensure mobile sidebar works correctly */
.vv-mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    z-index: 1040;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,.15);
    background: white;
    overflow-y: auto;
}

.vv-mobile-sidebar.show {
    left: 0;
}

/* Overlay adjustments */
.vv-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1035;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vv-sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Print styles */
@media print {
    .vv-navbar,
    .vv-sidebar-fixed,
    .vv-mobile-sidebar,
    .vv-sidebar-overlay,
    footer {
        display: none !important;
    }
    
    body {
        padding: 0 !important;
    }
    
    .vv-content-with-sidebar,
    .vv-content-full {
        margin: 0 !important;
        width: 100% !important;
        min-height: auto !important;
    }
    
    .vv-scrollable-content {
        height: auto !important;
        overflow: visible !important;
    }
}

/* Focus states for accessibility */
.vv-sidebar-item:focus {
    outline: 2px solid var(--vv-primary);
    outline-offset: 2px;
}

/* Loading states */
.vv-layout-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.vv-layout-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--vv-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 9999;
}

/* ===== SIDEBAR ENHANCEMENTS FOR FIXED LAYOUT ===== */

/* Sidebar content adjustments */
.vv-sidebar-fixed .vv-sidebar {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Sidebar items hover effects */
.vv-sidebar-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--vv-neutral);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.vv-sidebar-item:hover {
    background: linear-gradient(135deg, var(--vv-accent) 0%, rgba(243, 217, 220, 0.8) 100%);
    color: var(--vv-primary);
    border-left-color: var(--vv-primary);
    transform: translateX(2px);
}

.vv-sidebar-item.active {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    color: white;
    border-left-color: var(--vv-gold);
    font-weight: 600;
}

.vv-sidebar-item.active:hover {
    background: linear-gradient(to right, rgb(124, 58, 237), rgb(14, 116, 144));
    transform: translateX(2px);
}

/* Sidebar section headers */
.vv-sidebar h6 {
    padding: 1rem 1.5rem 0.5rem;
    margin-bottom: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--vv-neutral);
    opacity: 0.7;
}

/* Badge positioning in sidebar */
.vv-sidebar-item .badge {
    margin-left: auto;
    font-size: 0.7rem;
}

/* Disabled sidebar items */
.vv-sidebar-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.vv-sidebar-item.disabled:hover {
    background-color: transparent;
    color: inherit;
    transform: none;
}

/* Content area padding adjustments */
.vv-scrollable-content .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

/* Smooth transitions for layout changes */
.vv-layout-container,
.vv-content-with-sidebar,
.vv-content-full {
    transition: all 0.3s ease;
}

/* Enhanced mobile sidebar */
@media (max-width: 991.98px) {
    .vv-mobile-sidebar .vv-sidebar {
        padding-top: 0;
    }
    
    .vv-mobile-sidebar .vv-sidebar-item {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .vv-mobile-sidebar h6 {
        padding: 1rem 1.5rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Ensure proper z-index stacking */
.vv-navbar {
    z-index: 1030;
}

.vv-sidebar-fixed {
    z-index: 1020;
}

.vv-mobile-sidebar {
    z-index: 1040;
}

.vv-sidebar-overlay {
    z-index: 1035;
}

footer {
    z-index: 1010;
}

/* Content fade-in animation */
.vv-scrollable-content {
    animation: fadeInContent 0.3s ease-in-out;
}

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

/* Loading overlay for smooth transitions */
.vv-layout-loading {
    position: relative;
}

.vv-layout-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive content spacing */
@media (max-width: 768px) {
    .vv-scrollable-content .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .vv-scrollable-content .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        padding-top: 0.75rem;
        padding-bottom: 1rem;
    }
}
/* ===== 
COMPACT FOOTER STYLING ===== */

/* Compact footer base styles */
.vv-compact-footer {
    height: 45px !important;
    min-height: 45px !important;
    max-height: 45px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.vv-compact-footer .container-fluid {
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.vv-compact-footer .row {
    width: 100%;
    margin: 0;
    height: 100%;
    align-items: center !important;
}

.vv-compact-footer p,
.vv-compact-footer a {
    margin: 0 !important;
    line-height: 1.2 !important;
    font-size: 0.75rem !important;
}

.vv-compact-footer .col-md-6 {
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.vv-compact-footer .d-flex {
    height: 100%;
    align-items: center;
}

/* Mobile footer adjustments */
@media (max-width: 991.98px) {
    .vv-compact-footer {
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
    }
    
    .vv-compact-footer p,
    .vv-compact-footer a {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 768px) {
    .vv-compact-footer {
        height: 35px !important;
        min-height: 35px !important;
        max-height: 35px !important;
    }
    
    .vv-compact-footer p,
    .vv-compact-footer a {
        font-size: 0.65rem !important;
    }
    
    .vv-compact-footer .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Stack footer content on small screens */
    .vv-compact-footer .row {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .vv-compact-footer .col-md-6 {
        width: 100%;
        justify-content: center;
    }
    
    .vv-compact-footer .col-md-6:first-child {
        margin-bottom: 0.1rem;
    }
}

@media (max-width: 576px) {
    .vv-compact-footer {
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
    }
    
    .vv-compact-footer p,
    .vv-compact-footer a {
        font-size: 0.6rem !important;
    }
    
    .vv-compact-footer .gap-2 {
        gap: 0.5rem !important;
    }
}

/* Footer link hover effects */
.vv-compact-footer a:hover {
    color: var(--vv-primary) !important;
    transition: color 0.2s ease;
}

.vv-compact-footer a i {
    font-size: 0.8em;
    opacity: 0.8;
}

/* Ensure footer stays at bottom */
.vv-compact-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1010 !important;
    background: #f8f9fa !important;
    border-top: 1px solid rgba(0,0,0,0.1) !important;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.1) !important;
}

/* Override any conflicting styles */
.vv-compact-footer.py-1 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure proper text alignment */
.vv-compact-footer .text-md-end {
    text-align: right !important;
}

@media (max-width: 768px) {
    .vv-compact-footer .text-md-end {
        text-align: center !important;
    }
}

/* Remove any extra spacing */
.vv-compact-footer * {
    box-sizing: border-box;
}

/* Ensure icons are properly sized */
.vv-compact-footer i {
    font-size: 0.7em !important;
    margin-right: 0.25rem !important;
}

/* Responsive gap adjustments */
.vv-compact-footer .gap-2 {
    gap: 0.75rem !important;
}

@media (max-width: 768px) {
    .vv-compact-footer .gap-2 {
        gap: 0.5rem !important;
    }
}

@media (max-width: 576px) {
    .vv-compact-footer .gap-2 {
        gap: 0.4rem !important;
    }
}/* ===== 
ENHANCED PAGINATION ARROWS ===== */

/* Laravel pagination specific styling */
.pagination .page-item:first-child .page-link {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.pagination .page-item:last-child .page-link {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Custom arrow icons using Font Awesome if available */
.pagination .page-link[rel="prev"]:before,
.pagination .page-link[aria-label*="Previous"]:before {
    content: "\f104"; /* Font Awesome chevron-left */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
}

.pagination .page-link[rel="next"]:before,
.pagination .page-link[aria-label*="Next"]:before {
    content: "\f105"; /* Font Awesome chevron-right */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
}

/* Fallback for when Font Awesome is not available */
.pagination .page-link[rel="prev"]:not(.fa-loaded):before,
.pagination .page-link[aria-label*="Previous"]:not(.fa-loaded):before {
    content: "‹";
    font-family: serif;
    font-size: 1.4rem;
    font-weight: bold;
}

.pagination .page-link[rel="next"]:not(.fa-loaded):before,
.pagination .page-link[aria-label*="Next"]:not(.fa-loaded):before {
    content: "›";
    font-family: serif;
    font-size: 1.4rem;
    font-weight: bold;
}

/* Hide the default Laravel pagination text */
.pagination .page-link[rel="prev"] .sr-only,
.pagination .page-link[rel="next"] .sr-only,
.pagination .page-link[aria-label*="Previous"] .sr-only,
.pagination .page-link[aria-label*="Next"] .sr-only {
    display: none;
}

/* Ensure arrows are centered */
.pagination .page-link[rel="prev"],
.pagination .page-link[rel="next"],
.pagination .page-link[aria-label*="Previous"],
.pagination .page-link[aria-label*="Next"] {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Pagination container styling */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

/* Pagination info text */
.pagination-info {
    font-size: 0.875rem;
    color: var(--vv-neutral);
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Enhanced pagination with info */
.pagination-container {
    text-align: center;
}

.pagination-container .pagination-info {
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Hover effects for better UX */
.pagination .page-link:not(.disabled):hover {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    border-color: rgb(147 51 234);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(138, 21, 56, 0.3);
}

/* Active page styling */
.pagination .page-item.active .page-link {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    border-color: rgb(147 51 234);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(138, 21, 56, 0.3);
}

/* Disabled state improvements */
.pagination .page-item.disabled .page-link {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #adb5bd;
    transform: none;
    box-shadow: none;
}

/* Compact pagination for mobile */
@media (max-width: 576px) {
    .pagination-compact .page-item:not(:first-child):not(:last-child):not(.active) {
        display: none;
    }
    
    .pagination-compact .page-item.active {
        order: 2;
    }
    
    .pagination-compact .page-item:first-child {
        order: 1;
    }
    
    .pagination-compact .page-item:last-child {
        order: 3;
    }
    
    .pagination-compact {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Loading state for pagination */
.pagination-loading {
    opacity: 0.6;
    pointer-events: none;
}

.pagination-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--vv-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Smooth transitions */
.pagination .page-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
.pagination .page-link:focus {
    outline: 2px solid var(--vv-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 0.2rem rgba(138, 21, 56, 0.25);
}

/* Print styles */
@media print {
    .pagination {
        display: none !important;
    }
}/* =====
 BROKER REGISTRATION FORM ENHANCEMENTS ===== */

/* Form animations */
.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.slide-up {
    animation: slideUpFade 0.8s ease-out;
}

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

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

/* Enhanced form controls */
.vv-form-control:focus {
    border-color: var(--vv-primary);
    box-shadow: 0 0 0 0.2rem rgba(138, 21, 56, 0.15);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.vv-form-control {
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.vv-form-control:hover {
    border-color: rgba(138, 21, 56, 0.3);
}

/* Section headers with icons */
.section-header {
    position: relative;
    padding-left: 60px;
}

.section-header .icon-circle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

/* File upload area enhancements */
.file-upload-area {
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    background: rgba(138, 21, 56, 0.05) !important;
    border-color: var(--vv-primary) !important;
    transform: translateY(-2px);
}

.file-upload-area.dragover {
    background: rgba(138, 21, 56, 0.1) !important;
    border-color: var(--vv-primary) !important;
    transform: scale(1.02);
}

/* File list animations */
.file-item {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced buttons */
.vv-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.vv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 21, 56, 0.3);
}

.vv-btn:active {
    transform: translateY(0);
}

/* Loading spinner */
.vv-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Form validation enhancements */
.form-control.is-invalid {
    border-color: #dc3545;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Success states */
.form-control.is-valid {
    border-color: #28a745;
}

.form-control.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
}

/* Progress indicator */
.form-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 9999;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .section-header {
        padding-left: 50px;
    }
    
    .section-header .icon-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .vv-card-body {
        padding: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .section-header {
        padding-left: 0;
        text-align: center;
    }
    
    .section-header .icon-circle {
        position: relative;
        margin: 0 auto 1rem;
        transform: none;
    }
    
    .file-upload-area {
        padding: 2rem 1rem !important;
    }
}

/* Custom checkbox styling */
.form-check-input:checked {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    border-color: rgb(147 51 234);
}

.form-check-input:focus {
    border-color: var(--vv-primary);
    box-shadow: 0 0 0 0.2rem rgba(138, 21, 56, 0.15);
}

/* Alert enhancements */
.alert-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), rgba(23, 162, 184, 0.05));
    border-left: 4px solid #17a2b8;
}

/* Card hover effects */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
}

/* Password toggle button */
.password-toggle {
    border: none;
    background: none;
    color: #6c757d;
    padding: 0;
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--vv-primary);
}

/* Form section spacing */
.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Enhanced select styling */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
}

.form-select:focus {
    border-color: var(--vv-primary);
    box-shadow: 0 0 0 0.2rem rgba(138, 21, 56, 0.15);
}

/* Tooltip enhancements */
.tooltip-icon {
    color: #6c757d;
    cursor: help;
    margin-left: 0.25rem;
}

.tooltip-icon:hover {
    color: var(--vv-primary);
}
/* L
ogin Page Specific Styles */
.login-container {
    background: linear-gradient(135deg, rgba(138, 21, 56, 0.05) 0%, rgba(138, 21, 56, 0.02) 100%);
    min-height: 100vh;
}

.login-card {
    max-width: 500px;
    margin: 0 auto;
}

/* Form Control Enhancements */
.form-control:focus {
    border-color: var(--vv-primary);
    box-shadow: 0 0 0 0.2rem rgba(138, 21, 56, 0.25);
}

.btn-vv-primary {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    border-color: rgb(147 51 234);
    color: white;
}

.btn-vv-primary:hover {
    background-color: #6d1129;
    border-color: #6d1129;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(138, 21, 56, 0.3);
}

.btn-vv-gold {
    background-color: var(--vv-gold);
    border-color: var(--vv-gold);
    color: white;
}

.btn-vv-gold:hover {
    background-color: #a08220;
    border-color: #a08220;
    color: white;
}

/* Text Colors */
.text-vv-primary { color: var(--vv-primary) !important; }
.text-vv-gold { color: var(--vv-gold) !important; }
.text-vv-neutral { color: var(--vv-neutral) !important; }

/* Background Colors */
.bg-vv-primary { background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178)) !important; }
.bg-vv-gold { background-color: var(--vv-gold) !important; }
.bg-vv-accent { background-color: var(--vv-accent) !important; }

/* Border Colors */
.border-vv-primary { border-color: var(--vv-primary) !important; }
.border-vv-gold { border-color: var(--vv-gold) !important; }

/* Hover Effects */
.hover-lift:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Registration Cards */
.registration-card {
    transition: all 0.3s ease;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .vv-card {
        margin: 1rem;
    }
    
    .login-container {
        padding: 1rem;
    }
}/* Addit
ional Navigation Styles */
.vv-navbar .brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.vv-navbar .brand-text {
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.5rem;
}

.vv-navbar .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.vv-navbar .navbar-toggler:focus {
    box-shadow: none;
}

/* User Avatar Styles */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-placeholder {
    width: 32px;
    height: 32px;
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

.avatar-placeholder-lg {
    width: 40px;
    height: 40px;
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--vv-neutral);
}

.user-role {
    color: var(--vv-primary);
    font-size: 0.75rem;
}

/* Dropdown Styles */
.notification-dropdown,
.user-dropdown {
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 0.75rem;
    padding: 0.5rem 0;
    min-width: 280px;
}

.notification-item,
.dropdown-item {
    padding: 0.75rem 1rem;
    border: none;
    transition: all 0.3s ease;
}

.notification-item:hover,
.dropdown-item:hover {
    background: var(--vv-accent);
    color: var(--vv-primary);
}

.notification-badge {
    font-size: 0.625rem;
    padding: 0.25rem 0.4rem;
}

/* Layout Styles */
.vv-layout-container {
    display: flex;
    min-height: calc(100vh - 60px); /* Adjust based on navbar height */
}

.vv-sidebar-fixed {
    width: 250px;
    position: fixed;
    top: 60px; /* Adjust based on navbar height */
    left: 0;
    height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 1000;
}

.vv-content-with-sidebar {
    margin-left: 250px;
    flex: 1;
    min-height: calc(100vh - 60px);
}

.vv-content-full {
    flex: 1;
    min-height: calc(100vh - 60px);
}

.vv-scrollable-content {
    height: 100%;
    overflow-y: auto;
}

.vv-mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1050;
    transition: left 0.3s ease;
    box-shadow: 2px 0 12px rgba(0,0,0,0.15);
}

.vv-mobile-sidebar.show {
    left: 0;
}

.vv-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vv-sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Footer Styles */
.vv-compact-footer {
    margin-top: auto;
    padding: 0.5rem 0;
    font-size: 0.75rem;
}

/* Alert Styles */
.vv-alert {
    border-radius: 0.75rem;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.vv-alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid var(--vv-success);
}

.vv-alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid var(--vv-danger);
}

.vv-alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 4px solid var(--vv-warning);
}

.vv-alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: #0c5460;
    border-left: 4px solid var(--vv-info);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .vv-content-with-sidebar {
        margin-left: 0;
    }
    
    .vv-sidebar-fixed {
        display: none;
    }
}

@media (max-width: 576px) {
    .vv-navbar {
        padding: 0.5rem 0;
    }
    
    .vv-navbar .brand-text {
        font-size: 1.25rem;
    }
    
    .vv-card {
        margin: 0.5rem;
    }
}
/* ====
= MOBILE TOUCH INTERFACE STYLES ===== */

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: env(safe-area-inset-bottom) 0 0;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
    max-width: 100%;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.25rem;
    text-decoration: none;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 60px;
    min-height: 44px;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

.bottom-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.bottom-nav-item.active {
    color: var(--vv-primary);
    background: rgba(138, 21, 56, 0.1);
}

.bottom-nav-item.touched {
    transform: scale(0.95);
    background: rgba(138, 21, 56, 0.2);
}

.bottom-nav-item .notification-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: var(--vv-danger);
    color: white;
    font-size: 0.6rem;
    padding: 0.15rem 0.3rem;
    border-radius: 0.75rem;
    min-width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Touch Feedback */
.touch-active {
    transform: scale(0.95) !important;
    opacity: 0.8 !important;
    transition: all 0.1s ease !important;
}

/* Swipe Feedback */
.swipe-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.swipe-feedback.show {
    transform: translate(-50%, -50%) scale(1);
}

.swipe-feedback.swipe-like {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.9), rgba(32, 201, 151, 0.9));
}

.swipe-feedback.swipe-pass {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.9), rgba(231, 76, 60, 0.9));
}

.swipe-feedback i {
    font-size: 1.5rem;
}

/* Pull to Refresh */
.pull-to-refresh-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: white;
    padding: 1rem;
    text-align: center;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pull-to-refresh-indicator.ready {
    background: var(--vv-accent);
}

.pull-to-refresh-indicator.refreshing .pull-spinner {
    animation: spin 1s linear infinite;
}

.pull-spinner {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--vv-primary);
}

.pull-text {
    display: block;
    font-size: 0.875rem;
    color: var(--vv-neutral);
    font-weight: 500;
}

/* Swipeable Cards */
.swipeable {
    touch-action: pan-y;
    user-select: none;
    position: relative;
}

.swipeable.swiping {
    z-index: 10;
}

/* Touch-friendly form elements */
input, textarea, select, button, .btn {
    min-height: 44px;
    touch-action: manipulation;
}

/* Larger touch targets for mobile */
@media (max-width: 768px) {
    .btn, .vv-btn {
        min-height: 48px;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .form-control, .form-select {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem 1rem;
    }
    
    .vv-sidebar-item {
        min-height: 52px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Increase tap targets for table actions */
    .table .btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
    }
    
    /* Larger checkbox and radio buttons */
    .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
        margin-top: 0.125rem;
    }
    
    /* Larger pagination buttons */
    .pagination .page-link {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Keyboard open adjustments */
.keyboard-open {
    padding-bottom: 0 !important;
}

.keyboard-open .mobile-bottom-nav {
    display: none;
}

.keyboard-open .vv-scrollable-content {
    height: 100vh !important;
}

/* Safe area adjustments for notched devices */
@supports (padding: max(0px)) {
    .mobile-bottom-nav {
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    }
    
    .vv-navbar {
        padding-top: max(1rem, env(safe-area-inset-top));
    }
    
    .vv-mobile-sidebar {
        padding-top: max(1rem, env(safe-area-inset-top));
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .mobile-bottom-nav {
        padding: 0.25rem 0;
    }
    
    .bottom-nav-item {
        padding: 0.25rem;
        font-size: 0.7rem;
        min-height: 40px;
    }
    
    .bottom-nav-item i {
        font-size: 1rem;
        margin-bottom: 0.125rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bottom-nav-item {
        border: 1px solid transparent;
    }
    
    .bottom-nav-item.active {
        border-color: var(--vv-primary);
    }
    
    .swipe-feedback {
        border: 2px solid white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .touch-active,
    .swipe-feedback,
    .pull-to-refresh-indicator {
        transition: none !important;
    }
    
    .pull-spinner {
        animation: none !important;
    }
}

/* Dark mode support for mobile elements */
@media (prefers-color-scheme: dark) {
    .mobile-bottom-nav {
        background: #1a1a1a;
        border-top-color: #333;
    }
    
    .bottom-nav-item {
        color: #ccc;
    }
    
    .bottom-nav-item.active {
        color: var(--vv-primary);
        background: rgba(138, 21, 56, 0.2);
    }
    
    .pull-to-refresh-indicator {
        background: #1a1a1a;
        color: #ccc;
    }
}

/* Focus indicators for accessibility */
.bottom-nav-item:focus {
    outline: 2px solid var(--vv-primary);
    outline-offset: 2px;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* Adjust body padding for mobile bottom nav */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px; /* Space for bottom navigation */
    }
    
    .vv-scrollable-content {
        height: calc(100vh - 70px - 80px); /* Navbar + bottom nav */
        padding-bottom: 1rem;
    }
}

/* Touch-friendly modal adjustments */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-header .btn-close {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
    }
    
    .modal-footer .btn {
        flex: 1;
        margin: 0 0.25rem;
    }
}

/* Swipe gesture indicators */
.swipe-hint {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swipe-hint.left {
    left: 1rem;
}

.swipe-hint.right {
    right: 1rem;
}

.swipeable:hover .swipe-hint {
    opacity: 1;
}

/* Loading states for touch interactions */
.touch-loading {
    position: relative;
    pointer-events: none;
}

.touch-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

/* Haptic feedback visual indicator */
.haptic-feedback {
    animation: hapticPulse 0.2s ease-out;
}

@keyframes hapticPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
/* ===== MOBILE CAMERA AND PHOTO UPLOAD STYLES ===== */

/* Mobile Photo Upload */
.mobile-photo-upload {
    position: relative;
    margin-bottom: 1rem;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 1rem;
    padding: 2rem 1rem;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--vv-primary);
    background: rgba(138, 21, 56, 0.05);
}

.upload-area.drag-over {
    border-color: var(--vv-primary);
    background: rgba(138, 21, 56, 0.1);
    transform: scale(1.02);
}

.upload-area.loading {
    pointer-events: none;
    opacity: 0.7;
}

.upload-content h4 {
    color: var(--vv-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.upload-content p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.upload-icon {
    font-size: 3rem;
    color: var(--vv-primary);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.upload-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.upload-actions .btn {
    min-width: 140px;
}

.upload-loading {
    padding: 2rem 1rem;
}

.upload-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Image Preview */
.image-preview {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.preview-container {
    position: relative;
    overflow: hidden;
}

.preview-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.preview-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-container:hover .preview-overlay {
    opacity: 1;
}

.preview-overlay .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.preview-info {
    padding: 0.75rem;
    text-align: center;
    background: #f8f9fa;
}

/* Camera Modal */
.camera-modal .modal-dialog {
    margin: 0;
    height: 100vh;
}

.camera-modal .modal-content {
    height: 100vh;
    border-radius: 0;
}

.camera-modal .modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.camera-container {
    position: relative;
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-canvas {
    position: absolute;
    top: 0;
    left: 0;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-frame {
    width: 280px;
    height: 280px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.3);
}

.camera-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.camera-controls .btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.camera-controls .btn-capture {
    width: 80px;
    height: 80px;
    font-size: 1.5rem;
    background: white;
    color: var(--vv-primary);
}

.camera-controls .btn-capture:hover {
    transform: scale(1.1);
}

/* Photo Preview in Camera */
.photo-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #000;
}

.preview-image {
    flex: 1;
    width: 100%;
    object-fit: contain;
}

.preview-controls {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.preview-controls .btn {
    min-width: 120px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .upload-area {
        padding: 1.5rem 1rem;
    }
    
    .upload-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .upload-actions .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .camera-frame {
        width: 240px;
        height: 240px;
    }
    
    .camera-controls {
        bottom: 1rem;
    }
    
    .camera-controls .btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .camera-controls .btn-capture {
        width: 70px;
        height: 70px;
        font-size: 1.25rem;
    }
    
    .preview-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .preview-controls .btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .upload-area {
        padding: 1rem 0.5rem;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .upload-content h4 {
        font-size: 1rem;
    }
    
    .upload-content p {
        font-size: 0.8rem;
    }
    
    .camera-frame {
        width: 200px;
        height: 200px;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .camera-frame {
        width: 180px;
        height: 180px;
    }
    
    .camera-controls {
        bottom: 0.5rem;
        gap: 0.5rem;
    }
    
    .camera-controls .btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .camera-controls .btn-capture {
        width: 60px;
        height: 60px;
        font-size: 1.1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .upload-area {
        background: #2d2d2d;
        border-color: #555;
        color: #fff;
    }
    
    .upload-area:hover {
        background: rgba(138, 21, 56, 0.1);
    }
    
    .upload-content p {
        color: #ccc;
    }
    
    .image-preview {
        background: #2d2d2d;
    }
    
    .preview-info {
        background: #2d2d2d;
        color: #ccc;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .upload-area {
        border-width: 3px;
    }
    
    .camera-frame {
        border-width: 3px;
    }
    
    .camera-controls .btn {
        border-width: 3px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .upload-area,
    .preview-overlay,
    .camera-controls .btn {
        transition: none !important;
    }
    
    .upload-area.drag-over {
        transform: none !important;
    }
    
    .camera-controls .btn-capture:hover {
        transform: none !important;
    }
}

/* Touch-friendly adjustments */
.upload-actions .btn,
.preview-overlay .btn,
.camera-controls .btn,
.preview-controls .btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Loading states */
.camera-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 20;
}

.camera-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: white;
}

/* Error states */
.camera-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 20;
    max-width: 80%;
}

.camera-error i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* Accessibility improvements */
.camera-controls .btn:focus,
.upload-actions .btn:focus,
.preview-controls .btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Animation for photo capture */
.camera-flash {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 15;
}

.camera-flash.active {
    animation: flashEffect 0.3s ease-out;
}

@keyframes flashEffect {
    0% { opacity: 0; }
    50% { opacity: 0.8; }
    100% { opacity: 0; }
}

/* Image cropping interface (basic) */
.crop-container {
    position: relative;
    max-width: 100%;
    margin: 1rem 0;
}

.crop-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.crop-overlay {
    position: absolute;
    border: 2px solid var(--vv-primary);
    background: rgba(138, 21, 56, 0.1);
    cursor: move;
}

.crop-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(to right, rgb(147 51 234), rgb(8 145 178));
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
}

.crop-handle.nw { top: -5px; left: -5px; cursor: nw-resize; }
.crop-handle.ne { top: -5px; right: -5px; cursor: ne-resize; }
.crop-handle.sw { bottom: -5px; left: -5px; cursor: sw-resize; }
.crop-handle.se { bottom: -5px; right: -5px; cursor: se-resize; }