/* ============================================
   CMS Design Enhancements
   Cards, Buttons, Navigation, Colors, Responsive
   ============================================ */

/* ============================================
   1. CARDS & CONTAINERS
   ============================================ */

/* Base card improvements - no hover effects except for news cards */
.card {
    border-color: rgba(0, 0, 0, 0.125);
}

/* Avatar display fixes */
.avatar.figure__user-ranking {
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.avatar.rounded-circle.figure__user-ranking {
    background-size: cover;
    overflow: hidden;
    border-radius: 50%;
}

/* Enhanced news cards hover - ONLY hover effect on cards */
.card-news {
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.card-news:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: none; /* Override existing pulse animation */
}

/* ============================================
   2. BUTTONS & INTERACTIONS
   ============================================ */

/* Base button transitions */
.btn {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Button hover states with color shift */
.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-danger:active {
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

/* Primary button - using CMS blue accent color */
.btn-primary {
    background-color: #0a72e8;
    border-color: #0a72e8;
}

.btn-primary:hover {
    background-color: #095bb8;
    border-color: #084a9a;
    box-shadow: 0 4px 8px rgba(10, 114, 232, 0.3);
}

.btn-primary:active {
    background-color: #084a9a;
    box-shadow: 0 2px 4px rgba(10, 114, 232, 0.2);
}

/* Success button */
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-success:active {
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

/* Info button */
.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

.btn-info:active {
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.2);
}

/* Warning button */
.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.btn-warning:active {
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
}

/* Secondary button */
.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn-secondary:active {
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

/* Button focus states for accessibility */
.btn:focus {
    outline: 2px solid rgba(0, 123, 255, 0.5);
    outline-offset: 2px;
}

.btn-round {
    border-radius: 50px;
}

/* Button block improvements */
.btn-block {
    width: 100%;
}

/* Hotel settings toggle buttons */
.btn-group-toggle .btn.active {
    background-color: #0a72e8 !important;
    border-color: #0a72e8 !important;
    color: white !important;
}

.btn-group-toggle .btn:not(.active) {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-group-toggle .btn:hover:not(.active) {
    background-color: #5a6268;
    border-color: #545b62;
}

.bg-light-gray {
    background-color: #f5f5f5;
}

/* Wardrobe avatar display */
.figure__user.userLookAvatarlook {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Figure user in card-body p-0 - crop bottom like old CMS */
.card-body.p-0 .figure__user {
    min-height: 190px;
    max-height: 190px;
    height: 100%;
    width: 100%;
    background-position: center top 30%;
    background-repeat: no-repeat;
    -webkit-filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 2px 0 #fff) drop-shadow(0 -2px 0 #fff);
    filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 2px 0 #fff) drop-shadow(0 -2px 0 #fff);
}

/* Ensure parent container crops the bottom - match old CMS behavior */
.card__player .card-body.p-0 {
    overflow: hidden;
}

/* Badge cards hover effect */
.badge-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* VIP Button Effects */
a[href*="vip"]:not(.btn):not(.nav-link),
.btn-vip,
a.btn-warning[href*="vip"],
.dropdown-item[href*="vip"] {
    position: relative;
    overflow: hidden;
}

a[href*="vip"]:not(.btn):not(.nav-link) .fa-gem,
.btn-vip .fa-gem,
a.btn-warning[href*="vip"] .fa-star,
a.btn-warning[href*="vip"] .ft-star,
.dropdown-item[href*="vip"] .fa-gem {
    animation: vip-glow 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6);
}

@keyframes vip-glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 215, 0, 1), 0 0 30px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.6);
        transform: scale(1.1);
    }
}

/* VIP button hover effect */
a.btn-warning[href*="vip"]:hover,
.btn-vip:hover {
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.6), 0 0 30px rgba(255, 193, 7, 0.4);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.dropdown-item[href*="vip"]:hover {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.1), rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.1));
    background-size: 200% 100%;
    animation: vip-shimmer 2s linear infinite;
}

@keyframes vip-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ============================================
   5. NAVIGATION & NAVBAR
   ============================================ */

/* Navbar item transitions */
.navbar .navbar-nav .nav-item {
    transition: all 0.2s ease;
}

.navbar .navbar-nav .nav-link {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    position: relative;
}

/* Nav link hover effect */
.navbar .navbar-nav .nav-link:hover:not(.active) {
    color: #0a72e8 !important;
    background-color: rgba(10, 114, 232, 0.1);
}

/* Active nav item enhancement */
.navbar .navbar-nav .active {
    border-bottom: 2px solid #0a72e8;
    transition: border-color 0.2s ease;
}

.navbar .navbar-nav .active > .nav-link {
    color: #0a72e8 !important;
    font-weight: 500;
}

/* Dropdown menu animations */
.dropdown-menu {
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(-5px);
    z-index: 1060 !important; /* Higher than notifications (z-index: 1050) */
}

.navbar .dropdown-menu {
    z-index: 1061 !important; /* Ensure navbar dropdowns are above everything */
}

.dropdown.show .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
}

/* Dropdown item hover */
.dropdown-item {
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
    background-color: rgba(10, 114, 232, 0.1);
    color: #0a72e8;
}

.dropdown-item.active {
    background-color: #0a72e8;
    color: #fff !important;
}

/* Dropdown arrow rotation (already exists but ensure smooth) */
.navbar .dropdown .la-angle-down {
    transition: transform 0.3s ease;
}

.navbar .dropdown.show .la-angle-down {
    transform: rotate(180deg);
}

/* Mobile menu improvements */
@media (max-width: 768px) {
    .navbar-nav {
        padding: 10px 0;
    }
    
    .nav-link {
        padding: 12px 15px !important;
        border-radius: 4px;
        margin: 2px 0;
    }
    
    .nav-link:hover {
        background-color: rgba(10, 114, 232, 0.1);
    }
    
    .dropdown-menu {
        border-radius: 4px;
        margin-top: 5px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* ============================================
   7. COLORS & CONTRAST
   ============================================ */

/* Refined red accent color for better contrast */
:root {
    --red-accent: #b80000; /* Slightly lighter than #8f0000 for better visibility */
    --red-accent-hover: #9a0000;
    --blue-accent: #0a72e8;
    --blue-accent-hover: #095bb8;
}

/* Text contrast improvements */
.text-muted {
    color: #6c757d !important;
}

/* Better contrast for headings */
h1, h2, h3, h4, h5, h6 {
    color: #212529;
    font-weight: 600;
}

/* Card titles */
.card-title {
    color: #212529;
    font-weight: 600;
}

/* Error message styling */
.error {
    background: #f44336;
    color: #fff;
    border-left: 4px solid #d32f2f;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
}

.errorSucces {
    background: #4caf50;
    color: #fff;
    border-left: 4px solid #388e3c;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

/* Alert improvements */
.alert {
    border-left-width: 4px;
    transition: box-shadow 0.2s ease;
}

.alert-success {
    border-left-color: #28a745;
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    border-left-color: #dc3545;
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    border-left-color: #ffc107;
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    border-left-color: #17a2b8;
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Subtle gradients for buttons */
.btn-danger {
    background: linear-gradient(to bottom, #dc3545 0%, #c82333 100%);
}

.btn-danger:hover {
    background: linear-gradient(to bottom, #c82333 0%, #bd2130 100%);
}

.btn-primary {
    background: linear-gradient(to bottom, #0a72e8 0%, #095bb8 100%);
}

.btn-primary:hover {
    background: linear-gradient(to bottom, #095bb8 0%, #084a9a 100%);
}

/* ============================================
   10. RESPONSIVE DETAILS
   ============================================ */

/* Mobile spacing improvements */
@media (max-width: 768px) {
    /* Better card spacing on mobile */
    .card {
        margin-bottom: 1rem;
    }
    
    .mb-2 {
        margin-bottom: 1rem !important;
    }
    
    /* Improved container padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Better touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 12px 15px;
        display: flex;
        align-items: center;
    }
    
    .dropdown-item {
        min-height: 44px;
        padding: 12px 20px;
        display: flex;
        align-items: center;
    }
    
    /* Form inputs - prevent zoom on iOS */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
        padding: 12px;
        min-height: 44px;
    }
    
    /* Better card layouts on mobile */
    .card-body {
        padding: 1rem;
    }
    
    /* Improved grid spacing */
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .row > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* News cards on mobile */
    .card-news {
        margin-bottom: 1rem;
    }
    
    /* Better mobile navigation */
    .navbar-nav {
        padding: 0;
    }
    
    .navbar-collapse {
        padding-top: 10px;
    }
}

/* Tablet improvements */
@media (min-width: 769px) and (max-width: 992px) {
    .card {
        margin-bottom: 1.25rem;
    }
    
    .btn {
        padding: 10px 18px;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn, .nav-link, .dropdown-item {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    /* Hover effects already removed for all devices */
}

/* Safe area insets for iOS notch devices */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
    
    .navbar {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
}

/* Improved scrolling on mobile */
@media (max-width: 768px) {
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    .card-body,
    .dropdown-menu {
        -webkit-overflow-scrolling: touch;
    }
}

/* Prevent text selection on UI elements */
.btn, .nav-link, button {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Allow text selection in content areas */
.card-body, p, span, .news-content {
    -webkit-user-select: text;
    user-select: text;
}

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

[data-theme="dark"] {
    --bg-primary: #232323;
    --bg-secondary: #1e1e1e;
    --bg-card: #1f1f1f;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #3a3a3a;
}

[data-theme="dark"] html,
[data-theme="dark"] body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .container {
    background-color: transparent;
}

[data-theme="dark"] .jumbotron {
    background-color: var(--bg-secondary);
}

/* Online Count Banner - In Jumbotron with Box */
.jumbotron__header {
    position: relative;
}

.online-count-banner {
    position: absolute;
    bottom: 15px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.75); /* Black, semi-transparent */
    border-radius: 8px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #ffffff;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.online-count-banner:hover {
    background-color: rgba(0, 0, 0, 0.85);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.online-count-banner #onlinecount {
    font-weight: 600;
    font-size: 14px;
}

.online-count-banner .online-separator {
    opacity: 0.8;
    margin: 0 4px;
    font-weight: 400;
}

.online-count-banner .online-label {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

/* Dark theme adjustments */
[data-theme="dark"] .online-count-banner {
    background-color: rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .online-count-banner:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Navbar dark mode */
[data-theme="dark"] .header-navbar,
[data-theme="dark"] .navbar-dark,
[data-theme="dark"] .navbar-horizontal {
    background-color: #101010 !important;
}

[data-theme="dark"] .header-navbar .navbar-container {
    background-color: #101010 !important;
}

/* Text elements - override black colors */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .card-title,
[data-theme="dark"] .card-subtitle {
    color: var(--text-primary) !important;
}

[data-theme="dark"] p,
[data-theme="dark"] span:not(.badge):not(.fa),
[data-theme="dark"] div:not(.btn):not(.card-header):not(.alert),
[data-theme="dark"] li,
[data-theme="dark"] td,
[data-theme="dark"] th,
[data-theme="dark"] label,
[data-theme="dark"] small {
    color: var(--text-primary) !important;
}

[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.badge) {
    color: #6ab3ff !important;
}

[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.badge):hover {
    color: #8cc5ff !important;
    text-decoration: underline;
}

[data-theme="dark"] .card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .card-header {
    background-color: #101010 !important;
    border-color: var(--border-color);
    color: var(--text-primary) !important;
}

/* Override Bootstrap background classes for card headers in dark theme */
[data-theme="dark"] .card-header.bg-primary,
[data-theme="dark"] .card-header.bg-danger,
[data-theme="dark"] .card-header.bg-success,
[data-theme="dark"] .card-header.bg-info,
[data-theme="dark"] .card-header.bg-warning,
[data-theme="dark"] .card-header.bg-secondary,
[data-theme="dark"] .card-header.bg-dark,
[data-theme="dark"] .card-header.bg-light {
    background-color: #101010 !important;
    color: var(--text-primary) !important;
}

/* Keep transparent headers transparent */
[data-theme="dark"] .card-header.bg-transparent {
    background-color: transparent !important;
}

/* Override inline styles on card headers in dark theme - use max specificity */
[data-theme="dark"] .card-header[style*="background-color"],
[data-theme="dark"] .card-header[style*="background:"] {
    background-color: #101010 !important;
    color: var(--text-primary) !important;
}

/* Special case: card-header-articles (news article header with image) */
[data-theme="dark"] .card-header-articles {
    background-color: #101010 !important;
    background-image: none !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .card-body {
    background-color: var(--bg-card) !important;
    color: var(--text-primary);
}

[data-theme="dark"] .form-control {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus {
    background-color: var(--bg-secondary);
    border-color: #0a72e8;
    color: var(--text-primary);
}

[data-theme="dark"] .table {
    color: var(--text-primary);
}

[data-theme="dark"] .table thead th {
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .table tbody td {
    border-color: var(--border-color);
}

[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .table-hover tbody tr:hover {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .alert {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .text-muted {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .text-dark {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-black {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-secondary {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] strong,
[data-theme="dark"] b {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .news-content,
[data-theme="dark"] .news-content * {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .news-content a {
    color: #6ab3ff !important;
}

[data-theme="dark"] .dropdown-menu {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .modal-content {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .modal-header {
    border-color: var(--border-color);
}

/* VIP/Shop Page Dark Theme Styles */
[data-theme="dark"] h5.silver {
    background-color: #101010 !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
    text-shadow: none !important;
}

[data-theme="dark"] .price {
    color: rgba(189, 97, 97, 0.9) !important;
}

[data-theme="dark"] .alert-warning {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .alert-warning strong {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .modal-footer {
    border-color: var(--border-color);
}

[data-theme="dark"] .list-group-item {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Pagination - Dark Theme */
[data-theme="dark"] .pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    width: fit-content;
    margin: 0 auto;
}

[data-theme="dark"] .pagination .page-link {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: #e0e0e0;
    padding: 8px 16px;
    min-width: 40px;
    text-align: center;
    transition: all 0.2s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

[data-theme="dark"] .pagination .page-link:hover:not(:disabled) {
    background-color: #353535;
    border-color: #4a4a4a;
    color: #ffffff;
    transform: translateY(-1px);
}

[data-theme="dark"] .pagination .page-item.active .page-link {
    background-color: #1a1a1a;
    border-color: #2a2a2a;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .pagination .page-item.disabled .page-link {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
    color: #666666;
    opacity: 0.6;
    cursor: not-allowed;
}

[data-theme="dark"] .pagination .page-link:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
    outline: none;
}

/* Pagination - Light Theme */
.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 8px;
    width: fit-content;
    margin: 0 auto;
}

.pagination .page-link {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    padding: 8px 16px;
    min-width: 40px;
    text-align: center;
    transition: all 0.2s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.pagination .page-link:hover:not(:disabled) {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: #0a72e8;
    border-color: #0a72e8;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(10, 114, 232, 0.3);
}

.pagination .page-item.disabled .page-link {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #adb5bd;
    opacity: 0.6;
    cursor: not-allowed;
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 2px rgba(10, 114, 232, 0.25);
    outline: none;
}

/* Footer dark mode */
[data-theme="dark"] footer,
[data-theme="dark"] .footer {
    background-color: #181818 !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] footer p,
[data-theme="dark"] .footer p {
    color: var(--text-primary) !important;
}

[data-theme="dark"] footer a,
[data-theme="dark"] .footer a {
    color: #6ab3ff !important;
}

[data-theme="dark"] footer a:hover,
[data-theme="dark"] .footer a:hover {
    color: #8cc5ff !important;
}

/* Figure user background in dark mode */
[data-theme="dark"] .figure__user {
    background-color: var(--bg-card) !important;
}

[data-theme="dark"] .card-body.p-0 .figure__user {
    background-position: center top 30% !important;
    background-repeat: no-repeat !important;
    -webkit-filter: drop-shadow(2px 0 0 rgba(255,255,255,0.3)) drop-shadow(-2px 2px 0 rgba(255,255,255,0.3)) drop-shadow(0 -2px 0 rgba(255,255,255,0.3));
    filter: drop-shadow(2px 0 0 rgba(255,255,255,0.3)) drop-shadow(-2px 2px 0 rgba(255,255,255,0.3)) drop-shadow(0 -2px 0 rgba(255,255,255,0.3));
}

[data-theme="dark"] .figure__user-staff {
    background-color: var(--bg-card) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Dark mode VIP effects */
[data-theme="dark"] a.btn-warning[href*="vip"]:hover,
[data-theme="dark"] .btn-vip:hover {
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.8), 0 0 40px rgba(255, 193, 7, 0.6);
}

[data-theme="dark"] a.btn-warning[href*="vip"] .fa-star,
[data-theme="dark"] a.btn-warning[href*="vip"] .ft-star,
[data-theme="dark"] .dropdown-item[href*="vip"] .fa-gem {
    animation: vip-glow-dark 2s ease-in-out infinite;
}

@keyframes vip-glow-dark {
    0%, 100% {
        text-shadow: 0 0 15px rgba(255, 215, 0, 1), 0 0 25px rgba(255, 215, 0, 0.8);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 35px rgba(255, 215, 0, 1), 0 0 50px rgba(255, 215, 0, 0.8);
        transform: scale(1.1);
    }
}

/* Dark mode toggle button */
.theme-toggle {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   NEWS SIDEBAR STYLING
   ============================================ */

/* Sidebar card styling */
.news-sidebar-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
}

.news-sidebar-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-sidebar-card .card-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom: none;
}

.news-sidebar-card .card-header i {
    margin-right: 0.5rem;
}

/* Statistics items */
.news-stat-item {
    padding: 0.5rem 0;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #333);
    line-height: 1.2;
}

.news-stat-item small {
    font-size: 0.75rem;
    display: block;
    margin-top: 0.25rem;
}

/* Sidebar news items */
.news-sidebar-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 0.5rem;
    margin: -0.5rem;
}

.news-sidebar-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
    text-decoration: none;
    color: inherit;
    transform: translateX(4px);
}

.news-sidebar-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.news-sidebar-thumb-full {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: block;
}

.news-sidebar-image-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.news-sidebar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 1rem;
    color: white;
}

.news-sidebar-title-overlay {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.25rem;
}

.news-sidebar-meta-overlay {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.news-sidebar-meta-overlay i {
    color: rgba(255, 255, 255, 0.9);
}

.news-sidebar-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary, #333);
    transition: color 0.2s ease;
}

.news-sidebar-item:hover .news-sidebar-title {
    color: #0a72e8;
}

/* Dark mode sidebar */
[data-theme="dark"] .news-sidebar-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .news-sidebar-card .card-header {
    background-color: #101010 !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .stat-number {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .news-sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .news-sidebar-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .news-sidebar-item:hover .news-sidebar-title {
    color: #6ab3ff !important;
}

[data-theme="dark"] .news-sidebar-thumb,
[data-theme="dark"] .news-sidebar-thumb-full {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .news-sidebar-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
}

[data-theme="dark"] .news-sidebar-title-overlay {
    color: white !important;
}

[data-theme="dark"] .news-sidebar-meta-overlay {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Recent News Carousel Style (smaller, compact) */
.news-recent-carousel-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.news-recent-carousel-card .card-header {
    padding: 0.6rem 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 0.95rem;
}

.news-recent-carousel-card .card-header i {
    font-size: 0.9rem;
}

.news-recent-carousel-card .card-body {
    padding: 0.75rem;
}

#recentNewsCarousel {
    position: relative;
}

#recentNewsCarousel .carousel-inner {
    padding: 0.5rem 0;
}

#recentNewsCarousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

.news-recent-carousel-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    padding: 0.25rem;
}

.news-recent-carousel-item:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
}

.news-recent-carousel-image-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.news-recent-carousel-item:hover .news-recent-carousel-image-wrapper {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.news-recent-carousel-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-recent-carousel-item:hover .news-recent-carousel-thumb {
    transform: scale(1.05);
}

.news-recent-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    padding: 10px 8px 6px;
    color: #fff;
}

.news-recent-carousel-title {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-recent-carousel-meta {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.news-recent-carousel-meta i {
    font-size: 9px;
    margin-right: 4px;
    opacity: 0.9;
}

/* Carousel Controls */
#recentNewsCarousel .carousel-control-prev,
#recentNewsCarousel .carousel-control-next {
    width: 35px;
    height: 35px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

#recentNewsCarousel .carousel-control-prev {
    left: 10px;
}

#recentNewsCarousel .carousel-control-next {
    right: 10px;
}

#recentNewsCarousel .carousel-control-prev:hover,
#recentNewsCarousel .carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
}

#recentNewsCarousel .carousel-control-prev-icon,
#recentNewsCarousel .carousel-control-next-icon {
    width: 15px;
    height: 15px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .news-recent-carousel-image-wrapper {
        height: 110px;
    }
}

@media (max-width: 767px) {
    .news-recent-carousel-image-wrapper {
        height: 130px;
    }
    
    .news-recent-carousel-card .card-body {
        padding: 0.5rem;
    }
    
    #recentNewsCarousel .carousel-control-prev,
    #recentNewsCarousel .carousel-control-next {
        width: 30px;
        height: 30px;
    }
    
    #recentNewsCarousel .carousel-control-prev-icon,
    #recentNewsCarousel .carousel-control-next-icon {
        width: 12px;
        height: 12px;
    }
}

/* Dark mode */
[data-theme="dark"] .news-recent-carousel-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .news-recent-carousel-card .card-header {
    background-color: #101010 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .news-recent-carousel-image-wrapper {
    background: #1a1a1a;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .news-recent-carousel-item:hover .news-recent-carousel-image-wrapper {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .news-recent-carousel-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
}

[data-theme="dark"] .news-recent-carousel-title {
    color: #fff !important;
}

[data-theme="dark"] .news-recent-carousel-meta {
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="dark"] #recentNewsCarousel .carousel-control-prev,
[data-theme="dark"] #recentNewsCarousel .carousel-control-next {
    background-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] #recentNewsCarousel .carousel-control-prev:hover,
[data-theme="dark"] #recentNewsCarousel .carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   NEWS COMMENTS STYLING
   ============================================ */

.news-comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-comment-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
    position: relative;
}

.news-comment-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

.news-comment-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 1.25rem;
    right: 1.25rem;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.news-comment-avatar-wrapper {
    flex-shrink: 0;
    margin-right: 1rem;
}

.news-comment-avatar-link {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.news-comment-avatar-link:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.news-comment-avatar {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news-comment-avatar-link:hover .news-comment-avatar {
    border-color: rgba(10, 114, 232, 0.5);
    box-shadow: 0 3px 10px rgba(10, 114, 232, 0.2);
}

.news-comment-avatar-placeholder {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(0, 0, 0, 0.1);
    color: #999;
    font-size: 24px;
}

.news-comment-content {
    min-width: 0;
}

.news-comment-header {
    margin-bottom: 0.75rem;
}

.news-comment-username {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #333);
    margin-bottom: 0.25rem;
}

.news-comment-username-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-comment-username-link:hover {
    color: #0a72e8;
    text-decoration: none;
}

.news-comment-date {
    font-size: 0.85rem;
    color: #999;
}

.news-comment-message {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary, #333);
    margin-bottom: 0.75rem;
    word-wrap: break-word;
}

.news-comment-reactions {
    display: flex;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.news-comment-actions {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.news-comment-item:hover .news-comment-actions {
    opacity: 1;
}

.news-comments-empty {
    padding: 2rem;
    text-align: center;
    color: #999;
}

.news-comments-empty i {
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 767px) {
    .news-comment-item {
        padding: 0.875rem 1rem;
    }
    
    .news-comment-avatar,
    .news-comment-avatar-placeholder {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
    }
    
    .news-comment-avatar-wrapper {
        margin-right: 0.75rem;
    }
    
    .news-comment-username {
        font-size: 0.95rem;
    }
    
    .news-comment-message {
        font-size: 0.9rem;
    }
}

/* Dark mode */
[data-theme="dark"] .news-comment-item {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .news-comment-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .news-comment-item:not(:last-child)::after {
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

[data-theme="dark"] .news-comment-avatar {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .news-comment-avatar-link:hover .news-comment-avatar {
    border-color: rgba(10, 114, 232, 0.6);
    box-shadow: 0 3px 10px rgba(10, 114, 232, 0.3);
}

[data-theme="dark"] .news-comment-avatar-placeholder {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #666;
}

[data-theme="dark"] .news-comment-username {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .news-comment-username-link:hover {
    color: #4a9eff !important;
}

[data-theme="dark"] .news-comment-date {
    color: rgba(255, 255, 255, 0.6) !important;
}

[data-theme="dark"] .news-comment-message {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .news-comment-reactions {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .news-comments-empty {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ============================================
   NEWS INDEX PAGE STYLING
   ============================================ */

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.news-card-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-5px);
}

.news-card {
    height: 100%;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.news-card-link:hover .news-card {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    border-color: #0a72e8 !important;
}

.news-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card-link:hover .news-card-image {
    transform: scale(1.05);
}

.news-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.5) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0.75rem;
}

.news-card-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary, #333);
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.news-card-link:hover .news-card-title {
    color: #0a72e8;
}

.news-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary, #666);
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    align-items: center;
}

.news-card-stats {
    display: flex;
    align-items: center;
}

.news-card-stats .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    font-weight: 600;
}

/* Dark mode news cards */
[data-theme="dark"] .news-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .news-card-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .news-card-link:hover .news-card-title {
    color: #6ab3ff !important;
}

[data-theme="dark"] .news-card-excerpt {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .news-card-image-wrapper {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .news-card-badge {
    background: rgba(30, 30, 30, 0.95);
    color: var(--text-primary);
}

[data-theme="dark"] .news-card-link:hover .news-card {
    border-color: #6ab3ff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .news-sidebar-card {
        margin-bottom: 1rem;
    }
    
    .news-sidebar-thumb {
        width: 60px;
        height: 45px;
    }
    
    .news-sidebar-thumb-full {
        height: 120px;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .news-card-image-wrapper {
        height: 180px;
    }
    
    .news-card-title {
        font-size: 1rem;
    }
    
    .news-card-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

/* ============================================
   PUB / ADVERTISEMENT PAGE STYLING
   ============================================ */

.pub-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
}

.pub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

.pub-card .card-header {
    padding: 1rem 1.5rem;
    font-weight: 600;
    border-bottom: none;
}

.pub-card .card-header i {
    margin-right: 0.5rem;
}

.pub-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-primary, #333);
}

.pub-content p {
    margin-bottom: 1rem;
}

.pub-content b {
    font-weight: 600;
    color: var(--text-primary, #333);
}

.pub-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.pub-feature {
    padding: 1.5rem;
    transition: transform 0.2s ease;
}

.pub-feature:hover {
    transform: translateY(-5px);
}

.pub-feature i {
    transition: transform 0.3s ease;
}

.pub-feature:hover i {
    transform: scale(1.1);
}

.pub-feature h6 {
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary, #333);
}

.pub-tip {
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    border-left: 3px solid #28a745;
    transition: all 0.2s ease;
}

.pub-tip:hover {
    background-color: rgba(0, 0, 0, 0.04);
    transform: translateX(5px);
}

.pub-tip strong {
    color: var(--text-primary, #333);
    font-weight: 600;
}

.pub-tip p {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Dark mode pub page */
[data-theme="dark"] .pub-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .pub-card .card-header {
    background-color: #101010 !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .pub-content {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .pub-content b {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .pub-feature h6 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .pub-tip {
    background-color: rgba(255, 255, 255, 0.03);
    border-left-color: #28a745;
}

[data-theme="dark"] .pub-tip:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .pub-tip strong {
    color: var(--text-primary) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pub-feature {
        padding: 1rem;
    }
    
    .pub-feature i {
        font-size: 2rem !important;
    }
    
    .pub-tip {
        padding: 0.75rem;
    }
}

/* ============================================
   PHOTO GALLERY PAGE STYLING
   ============================================ */

.photo-stats-header .stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 8px;
    min-width: 100px;
}

.photo-stats-header .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a72e8;
    display: block;
}

.photo-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.photo-card * {
    cursor: pointer;
}

.photo-card .card-body {
    cursor: default;
}

.photo-card .card-body a,
.photo-card .card-body button {
    cursor: pointer;
}

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

.photo-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
    background-color: #f0f0f0;
}

.photo-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-card:hover .photo-card-image {
    transform: scale(1.1);
}

.photo-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.photo-card:hover .photo-card-overlay {
    opacity: 1;
}

.photo-card-info {
    width: 100%;
    color: white;
}

.photo-card-user {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.photo-card-user:hover {
    color: #6ab3ff;
    text-decoration: none;
}

.photo-card-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.photo-card-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.photo-card-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.photo-card-link:hover {
    color: #0a72e8;
    text-decoration: none;
}

.photo-sidebar-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 0.5rem;
    margin: -0.5rem;
}

.photo-sidebar-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
    text-decoration: none;
    color: inherit;
    transform: translateX(4px);
}

.photo-sidebar-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Photo Modal */
#photoModal .modal-body {
    background-color: #000;
}

#photoModal .modal-content {
    background-color: transparent;
    border: none;
}

#photoModal .modal-header,
#photoModal .modal-footer {
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
}

[data-theme="dark"] #photoModal .modal-header,
[data-theme="dark"] #photoModal .modal-footer {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

/* Dark mode photo gallery */
[data-theme="dark"] .photo-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .photo-card-image-wrapper {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .photo-stats-header .stat-item {
    background: rgba(106, 179, 255, 0.1);
}

[data-theme="dark"] .photo-stats-header .stat-number {
    color: #6ab3ff;
}

[data-theme="dark"] .photo-sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .photo-sidebar-thumb {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .photo-card-link:hover {
    color: #6ab3ff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .photo-card-image-wrapper {
        padding-top: 75%; /* Slightly taller on mobile */
    }
    
    .photo-stats-header .stat-item {
        min-width: 80px;
        padding: 0.75rem;
    }
    
    .photo-stats-header .stat-number {
        font-size: 1.25rem;
    }
    
    .photo-sidebar-thumb {
        width: 50px;
        height: 50px;
    }
}

/* ============================================
   STAFF PAGE STYLING
   ============================================ */

.staff-stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    background-color: #fff;
}

.staff-stat-card i {
    color: #2d3436;
}

.staff-stat-card .stat-number {
    color: #2d3436;
}

.staff-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

.staff-rank-section {
    border-radius: 8px;
    overflow: hidden;
}

.staff-rank-section .card-header {
    padding: 1rem 1.5rem;
    font-weight: 600;
    border-bottom: none;
    color: white;
}

/* Rank header colors matching CMS theme */
.staff-rank-fondateur {
    background-color: #d63031 !important; /* Red */
    color: white !important;
}

.staff-rank-responsable {
    background-color: #2d3436 !important; /* Black/Dark grey */
    color: white !important;
}

.staff-rank-moderation {
    background-color: #636e72 !important; /* Grey */
    color: white !important;
}

.staff-rank-support {
    background-color: #b2bec3 !important; /* Light grey */
    color: #2d3436 !important;
}

.staff-rank-animation {
    background-color: #dfe6e9 !important; /* Very light grey/white */
    color: #2d3436 !important;
}

.staff-rank-default {
    background-color: #6c757d !important; /* Default grey */
    color: white !important;
}

.staff-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
}

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

.staff-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.staff-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #e0e0e0;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.staff-card:hover .staff-avatar {
    border-color: #0a72e8;
    transform: scale(1.05);
}

.staff-status-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

.staff-status-badge.online {
    background-color: #28a745;
    color: white;
}

.staff-status-badge.offline {
    background-color: #6c757d;
    color: white;
}

.staff-status-badge i {
    font-size: 0.5rem;
}

.staff-name-link {
    color: var(--text-primary, #333);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.staff-name-link:hover {
    color: #0a72e8;
    text-decoration: none;
}

.staff-motto {
    font-size: 0.85rem;
    color: var(--text-secondary, #666);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.staff-info {
    margin-top: 0.5rem;
}

.staff-sidebar-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 0.5rem;
    margin: -0.5rem;
}

.staff-sidebar-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
    text-decoration: none;
    color: inherit;
    transform: translateX(4px);
}

.staff-sidebar-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.staff-sidebar-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
}

.staff-status-badge-small {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
}

.staff-status-badge-small.online {
    background-color: #28a745;
    color: white;
}

.staff-status-badge-small.offline {
    background-color: #6c757d;
    color: white;
}

.staff-status-badge-small i {
    font-size: 0.4rem;
}

/* Dark mode staff page */
[data-theme="dark"] .staff-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

/* Don't override colored staff cards in dark theme */
[data-theme="dark"] .staff-card-new {
    background-color: var(--rank-color, #6c757d) !important;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.1) 10px,
            rgba(255, 255, 255, 0.1) 20px
        ),
        linear-gradient(135deg, var(--rank-color, #6c757d) 0%, var(--rank-color-dark, #4e555b) 100%) !important;
    color: white !important;
}

[data-theme="dark"] .staff-stat-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .staff-rank-section {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .staff-rank-section .card-header {
    background-color: #101010 !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .staff-name-link {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .staff-name-link:hover {
    color: #6ab3ff !important;
}

[data-theme="dark"] .staff-motto {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .staff-avatar {
    border-color: var(--border-color);
}

[data-theme="dark"] .staff-card:hover .staff-avatar {
    border-color: #6ab3ff;
}

[data-theme="dark"] .staff-sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* New Staff Page Design Styles */
.staff-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.125);
}

.staff-tab {
    padding: 12px 24px;
    background-color: #f8f9fa;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.staff-tab:hover {
    background-color: #e9ecef;
    color: #495057;
}

.staff-tab.active {
    background-color: #fff;
    color: #0a72e8;
    border-bottom-color: #0a72e8;
}

.staff-rank-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.125);
}

.staff-rank-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.staff-rank-icon.fondateur { background-color: #dc3545; }
.staff-rank-icon.ceo { background-color: #fd7e14; }
.staff-rank-icon.manager { background-color: #17a2b8; }
.staff-rank-icon.moderation { background-color: #6c757d; }
.staff-rank-icon.support { background-color: #28a745; }

.staff-card-new {
    background-color: var(--rank-color, #6c757d) !important;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.1) 10px,
            rgba(255, 255, 255, 0.1) 20px
        ),
        linear-gradient(135deg, var(--rank-color, #6c757d) 0%, var(--rank-color-dark, #4e555b) 100%) !important;
    border-radius: 8px;
    padding: 1.5rem;
    color: white !important;
    position: relative;
    min-height: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.staff-card-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.staff-card-new .online-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.staff-card-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px;
}

.staff-card-avatar .avatar {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.staff-card-name {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
}

.staff-card-name a {
    color: white;
    text-decoration: none;
}

.staff-card-name a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.staff-card-motto {
    font-size: 13px;
    font-style: italic;
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0.95;
    min-height: 40px;
    color: white;
}

.staff-card-role {
    text-align: center;
    font-size: 12px;
    opacity: 0.9;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.staff-info-box {
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.staff-info-header {
    padding: 1rem 1.5rem;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.staff-info-header.blue {
    background-color: #0a72e8;
}

.staff-info-header.green {
    background-color: #28a745;
}

.staff-info-body {
    padding: 1.5rem;
    background-color: #fff;
    color: #333;
}

.staff-info-body p {
    margin-bottom: 1rem;
}

.staff-info-body p:last-child {
    margin-bottom: 0;
}

/* Dark theme for new staff page */
[data-theme="dark"] .staff-tabs {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .staff-tab {
    background-color: #1e1e1e;
    color: #b0b0b0;
}

[data-theme="dark"] .staff-tab:hover {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

[data-theme="dark"] .staff-tab.active {
    background-color: #1f1f1f;
    color: #e0e0e0;
    border-bottom-color: #0a72e8;
}

[data-theme="dark"] .staff-rank-header {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .staff-info-body {
    background-color: #1f1f1f;
    color: #e0e0e0;
}

[data-theme="dark"] .staff-sidebar-avatar {
    border-color: var(--border-color);
}

[data-theme="dark"] .staff-stat-card {
    background-color: var(--bg-card) !important;
}

[data-theme="dark"] .staff-stat-card i {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .staff-stat-card .stat-number {
    color: var(--text-primary) !important;
}

/* Staff Application Form Styling */
.staff-apply-page-title {
    color: #2d3436;
}

.staff-apply-page-title i {
    color: #d63031;
}

.staff-apply-info-card {
    border-radius: 8px;
}

.staff-apply-info-card ol {
    padding-left: 1.5rem;
}

.staff-apply-info-card li {
    color: var(--text-secondary, #666);
    line-height: 1.6;
}

/* Header colors matching CMS theme */
.staff-apply-header-info {
    background-color: #2d3436 !important; /* Black/Dark grey */
    color: white !important;
    border-bottom: none;
}

.staff-apply-header-info h5,
.staff-apply-header-info h5 * {
    color: white !important;
}

.staff-apply-header-form {
    background-color: #d63031 !important; /* Red */
    color: white !important;
    border-bottom: none;
}

.staff-form-section {
    padding: 1rem 0;
}

.staff-form-section-title {
    color: #2d3436;
    font-weight: 600;
    border-bottom: 2px solid #d63031;
    padding-bottom: 0.5rem;
}

.staff-form-section-title i {
    color: #d63031;
}

.staff-form-label {
    font-weight: 600;
    color: var(--text-primary, #2d3436);
    margin-bottom: 0.5rem;
    display: block;
}

.staff-form-note {
    color: #636e72;
    font-weight: normal;
    font-size: 0.9em;
}

.staff-form-input,
.staff-form-textarea {
    border-radius: 6px;
    border: 1px solid #b2bec3;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    color: #2d3436;
}

.staff-form-input:focus,
.staff-form-textarea:focus {
    border-color: #d63031;
    box-shadow: 0 0 0 0.2rem rgba(214, 48, 49, 0.15);
    outline: none;
}

.staff-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.staff-submit-btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 6px;
    background-color: #d63031;
    border-color: #d63031;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.staff-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(214, 48, 49, 0.4);
    background-color: #c92a2a;
    border-color: #c92a2a;
    color: white;
}

.staff-submit-btn:active {
    transform: translateY(0);
    background-color: #b71c1c;
    border-color: #b71c1c;
}

/* Dark mode staff application form */
[data-theme="dark"] .staff-apply-info-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .staff-apply-info-card .card-header {
    background-color: #101010 !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .staff-apply-header-info {
    background-color: #2d3436 !important;
    color: white !important;
}

[data-theme="dark"] .staff-apply-header-form {
    background-color: #d63031 !important;
    color: white !important;
}

[data-theme="dark"] .staff-apply-info-card li {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .staff-form-section-title {
    color: var(--text-primary) !important;
    border-bottom-color: #d63031;
}

[data-theme="dark"] .staff-form-section-title i {
    color: #d63031;
}

[data-theme="dark"] .staff-form-label {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .staff-form-note {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .staff-form-input,
[data-theme="dark"] .staff-form-textarea {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .staff-form-input:focus,
[data-theme="dark"] .staff-form-textarea:focus {
    border-color: #d63031;
    box-shadow: 0 0 0 0.2rem rgba(214, 48, 49, 0.2);
}

[data-theme="dark"] .staff-form-input::placeholder,
[data-theme="dark"] .staff-form-textarea::placeholder {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .form-text.text-muted {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .staff-submit-btn {
    background-color: #d63031 !important;
    border-color: #d63031 !important;
    color: white !important;
}

[data-theme="dark"] .staff-submit-btn:hover {
    background-color: #c92a2a !important;
    border-color: #c92a2a !important;
    color: white !important;
}

[data-theme="dark"] .staff-apply-page-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .staff-apply-page-title i {
    color: #d63031;
}

/* ============================================
   SESSION LOG PAGE STYLING
   ============================================ */

.sessionlog-page-title {
    color: #2d3436;
}

.sessionlog-page-title i {
    color: #d63031;
}

.sessionlog-stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    background-color: #fff;
}

.sessionlog-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

.sessionlog-stat-card i {
    color: #2d3436;
}

.sessionlog-stat-card .stat-number {
    color: #2d3436;
    font-size: 2rem;
    font-weight: 600;
}

.sessionlog-header {
    background-color: #2d3436 !important;
    color: white !important;
    border-bottom: none;
}

.sessionlog-header h5,
.sessionlog-header h5 * {
    color: white !important;
}

.sessionlog-item {
    transition: background-color 0.2s ease;
    border-radius: 6px;
    padding: 1rem !important;
    margin-bottom: 0.75rem !important;
}

.sessionlog-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.sessionlog-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.sessionlog-flag-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 50%;
    flex-shrink: 0;
}

.sessionlog-flag {
    font-size: 1.5rem;
    line-height: 1;
}

.sessionlog-ip {
    font-weight: 600;
    color: #2d3436;
    font-size: 1rem;
}

.sessionlog-country {
    font-size: 0.85rem;
    display: block;
    margin-top: 0.25rem;
}

.sessionlog-date {
    font-weight: 500;
    color: #2d3436;
}

.sessionlog-browser {
    color: #2d3436;
    font-weight: 500;
}

/* Dark mode sessionlog */
[data-theme="dark"] .sessionlog-page-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .sessionlog-page-title i {
    color: #d63031;
}

[data-theme="dark"] .sessionlog-stat-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .sessionlog-stat-card i {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .sessionlog-stat-card .stat-number {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .sessionlog-header {
    background-color: #2d3436 !important;
    color: white !important;
}

[data-theme="dark"] .sessionlog-item {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .sessionlog-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .sessionlog-flag-wrapper {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .sessionlog-ip {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .sessionlog-date {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .sessionlog-browser {
    color: var(--text-primary) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .staff-avatar {
        width: 56px;
        height: 56px;
    }
    
    .staff-sidebar-avatar {
        width: 40px;
        height: 40px;
    }
    
    .staff-stat-card .stat-number {
        font-size: 1.25rem;
    }
    
    .staff-submit-btn {
        width: 100%;
    }
    
    .sessionlog-stat-card .stat-number {
        font-size: 1.5rem;
    }
    
    .sessionlog-item {
        padding: 0.75rem !important;
    }
}

/* ============================================
   PHOTO CONTESTS PAGE STYLING
   ============================================ */

.photo-contest-page-title {
    color: #2d3436;
}

.photo-contest-page-title i {
    color: #d63031;
}

.photo-contest-stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    background-color: #fff;
}

.photo-contest-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

.photo-contest-stat-card i {
    color: #2d3436;
}

.photo-contest-stat-card .stat-number {
    color: #2d3436;
    font-size: 2rem;
    font-weight: 600;
}

/* Header colors matching CMS theme */
.photo-contest-header-active {
    background-color: #d63031 !important; /* Red */
    color: white !important;
    border-bottom: none;
}

.photo-contest-header-upcoming {
    background-color: #2d3436 !important; /* Black/Dark grey */
    color: white !important;
    border-bottom: none;
}

.photo-contest-header-ended {
    background-color: #636e72 !important; /* Grey */
    color: white !important;
    border-bottom: none;
}

.photo-contest-header-active h5,
.photo-contest-header-upcoming h5,
.photo-contest-header-ended h5,
.photo-contest-header-active h5 *,
.photo-contest-header-upcoming h5 *,
.photo-contest-header-ended h5 * {
    color: white !important;
}

.photo-contest-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
}

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

.photo-contest-title {
    color: #2d3436;
    font-weight: 600;
    font-size: 1.1rem;
}

.photo-contest-theme {
    color: #636e72;
    font-size: 0.9rem;
}

.photo-contest-description {
    color: #2d3436;
    font-size: 0.9rem;
    line-height: 1.5;
}

.photo-contest-stats {
    padding-top: 0.5rem;
    border-top: 1px solid #e0e0e0;
}

/* Sidebar styling */
.photo-contest-sidebar-header {
    background-color: #2d3436 !important;
    color: white !important;
    border-bottom: none;
}

.photo-contest-sidebar-header h6,
.photo-contest-sidebar-header h6 * {
    color: white !important;
}

.photo-contest-sidebar-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 0.5rem;
    margin: -0.5rem;
}

.photo-contest-sidebar-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
    text-decoration: none;
    color: inherit;
    transform: translateX(4px);
}

.photo-contest-sidebar-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #e0e0e0;
    flex-shrink: 0;
}

.badge-sm {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

/* Dark mode photo contests */
[data-theme="dark"] .photo-contest-page-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .photo-contest-page-title i {
    color: #d63031;
}

[data-theme="dark"] .photo-contest-stat-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .photo-contest-stat-card i {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .photo-contest-stat-card .stat-number {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .photo-contest-header-active {
    background-color: #d63031 !important;
    color: white !important;
}

[data-theme="dark"] .photo-contest-header-upcoming {
    background-color: #2d3436 !important;
    color: white !important;
}

[data-theme="dark"] .photo-contest-header-ended {
    background-color: #636e72 !important;
    color: white !important;
}

[data-theme="dark"] .photo-contest-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .photo-contest-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .photo-contest-theme {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .photo-contest-description {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .photo-contest-stats {
    border-top-color: var(--border-color) !important;
}

[data-theme="dark"] .photo-contest-sidebar-header {
    background-color: #2d3436 !important;
    color: white !important;
}

[data-theme="dark"] .photo-contest-sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .photo-contest-sidebar-thumb {
    border-color: var(--border-color);
}

/* Staff controls */
.d-flex.gap-2 {
    gap: 0.5rem;
}

.d-flex.gap-2 .btn {
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .photo-contest-stat-card .stat-number {
        font-size: 1.5rem;
    }
    
    .photo-contest-sidebar-thumb {
        width: 40px;
        height: 40px;
    }
    
    .d-flex.gap-2 {
        flex-direction: column;
    }
    
    .d-flex.gap-2 .btn {
        width: 100%;
    }
}

/* ============================================
   ACHIEVEMENTS PAGE STYLING
   ============================================ */

.achievement-page-title {
    color: #2d3436;
}

.achievement-page-title i {
    color: #d63031;
}

.achievement-stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    background-color: #fff;
}

.achievement-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

.achievement-stat-card i {
    color: #2d3436;
}

.achievement-stat-card .stat-number {
    color: #2d3436;
    font-size: 2rem;
    font-weight: 600;
}

/* Header colors matching CMS theme */
.achievement-header-category {
    background-color: #2d3436 !important; /* Black/Dark grey */
    color: white !important;
    border-bottom: none;
}

.achievement-header-category h5,
.achievement-header-category h5 * {
    color: white !important;
}

.achievement-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
}

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

.achievement-completed {
    border-left: 4px solid #28a745 !important;
}

.achievement-title {
    color: #2d3436;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

.achievement-category-badge {
    background-color: #636e72;
    color: white;
    font-size: 0.75rem;
}

.achievement-completed-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.achievement-progress {
    border-radius: 10px;
    overflow: hidden;
}

.achievement-progress .progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.achievement-progress .progress-bar small {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.achievement-category-card {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.achievement-category-card:hover {
    background-color: #e9ecef;
}

.achievement-form-label {
    color: #2d3436;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.achievement-form-select {
    border-color: #ced4da;
    border-radius: 4px;
}

.achievement-form-select:focus {
    border-color: #0a72e8;
    box-shadow: 0 0 0 0.2rem rgba(10, 114, 232, 0.25);
}

/* Sidebar styling */
.achievement-sidebar-header {
    background-color: #2d3436 !important;
    color: white !important;
    border-bottom: none;
}

.achievement-sidebar-header h6,
.achievement-sidebar-header h6 * {
    color: white !important;
}

.achievement-sidebar-stat {
    font-size: 0.9rem;
}

.achievement-sidebar-stat strong {
    color: #2d3436;
    font-size: 1.1rem;
}

.badge-sm {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

/* Dark mode achievements */
[data-theme="dark"] .achievement-page-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .achievement-page-title i {
    color: #d63031;
}

[data-theme="dark"] .achievement-stat-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .achievement-stat-card i {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .achievement-stat-card .stat-number {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .achievement-header-category {
    background-color: #2d3436 !important;
    color: white !important;
}

[data-theme="dark"] .achievement-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .achievement-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .achievement-category-card {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .achievement-category-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .achievement-form-label {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .achievement-form-select {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .achievement-sidebar-header {
    background-color: #2d3436 !important;
    color: white !important;
}

[data-theme="dark"] .achievement-sidebar-stat strong {
    color: var(--text-primary) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .achievement-stat-card .stat-number {
        font-size: 1.5rem;
    }
    
    .achievement-card {
        margin-bottom: 1rem;
    }
}

/* ============================================
   GROUPS PAGE STYLING
   ============================================ */

.groups-page-title {
    color: #2d3436;
}

.groups-page-title i {
    color: #d63031;
}

.groups-stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    background-color: #fff;
}

.groups-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

.groups-stat-card i {
    color: #2d3436;
}

.groups-stat-card .stat-number {
    color: #2d3436;
    font-size: 2rem;
    font-weight: 600;
}

.groups-form-label {
    color: #2d3436;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.groups-form-input,
.groups-form-select {
    border-color: #ced4da;
    border-radius: 4px;
}

.groups-form-input:focus,
.groups-form-select:focus {
    border-color: #0a72e8;
    box-shadow: 0 0 0 0.2rem rgba(10, 114, 232, 0.25);
}

.groups-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
}

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

.groups-badge-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.groups-badge {
    max-width: 80px;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.groups-title {
    color: #2d3436;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
}

.groups-state-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.groups-description {
    color: #636e72;
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 50px;
}

.groups-info {
    font-size: 0.85rem;
}

.groups-owner-link {
    color: #0a72e8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.groups-owner-link:hover {
    color: #095bb8;
    text-decoration: none;
}

.groups-view-btn {
    transition: all 0.2s ease;
}

.groups-view-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(10, 114, 232, 0.3);
}

/* Sidebar styling */
.groups-sidebar-header {
    background-color: #2d3436 !important;
    color: white !important;
    border-bottom: none;
}

.groups-sidebar-header h6,
.groups-sidebar-header h6 * {
    color: white !important;
}

.groups-sidebar-stat {
    font-size: 0.9rem;
}

.groups-sidebar-stat strong {
    color: #2d3436;
    font-size: 1.1rem;
}

.groups-sidebar-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 0.5rem;
    margin: -0.5rem;
}

.groups-sidebar-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
    text-decoration: none;
    color: inherit;
    transform: translateX(4px);
}

.groups-sidebar-badge {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Dark mode groups */
[data-theme="dark"] .groups-page-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .groups-page-title i {
    color: #d63031;
}

[data-theme="dark"] .groups-stat-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .groups-stat-card i {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .groups-stat-card .stat-number {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .groups-form-label {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .groups-form-input,
[data-theme="dark"] .groups-form-select {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .groups-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .groups-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .groups-description {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .groups-owner-link {
    color: #0a72e8;
}

[data-theme="dark"] .groups-owner-link:hover {
    color: #3d8ef5;
}

[data-theme="dark"] .groups-sidebar-header {
    background-color: #2d3436 !important;
    color: white !important;
}

[data-theme="dark"] .groups-sidebar-stat strong {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .groups-sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .groups-stat-card .stat-number {
        font-size: 1.5rem;
    }
    
    .groups-card {
        margin-bottom: 1rem;
    }
    
    .groups-badge {
        max-width: 60px;
    }
}

/* ============================================
   ROOMS PAGE STYLING
   ============================================ */

.rooms-page-title {
    color: #2d3436;
}

.rooms-page-title i {
    color: #d63031;
}

.rooms-stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    background-color: #fff;
}

.rooms-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

.rooms-stat-card i {
    color: #2d3436;
}

.rooms-stat-card .stat-number {
    color: #2d3436;
    font-size: 2rem;
    font-weight: 600;
}

/* Header colors matching CMS theme */
.rooms-header-featured {
    background-color: #d63031 !important; /* Red */
    color: white !important;
    border-bottom: none;
}

.rooms-header-featured h5,
.rooms-header-featured h5 * {
    color: white !important;
}

.rooms-form-label {
    color: #2d3436;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.rooms-form-input,
.rooms-form-select {
    border-color: #ced4da;
    border-radius: 4px;
}

.rooms-form-input:focus,
.rooms-form-select:focus {
    border-color: #0a72e8;
    box-shadow: 0 0 0 0.2rem rgba(10, 114, 232, 0.25);
}

.rooms-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
}

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

.rooms-featured-border {
    border-left: 4px solid #ffc107 !important;
}

.rooms-thumbnail-wrapper {
    height: 150px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.rooms-thumbnail {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.rooms-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    background-color: #e9ecef;
    border: 2px dashed #adb5bd;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #6c757d;
    font-size: 12px;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
}

.rooms-placeholder i {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.rooms-featured-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.rooms-title {
    color: #2d3436;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
}

.rooms-description {
    color: #636e72;
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 40px;
}

.rooms-info {
    font-size: 0.85rem;
}

.rooms-owner-link {
    color: #0a72e8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.rooms-owner-link:hover {
    color: #095bb8;
    text-decoration: none;
}

.rooms-state-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.rooms-enter-btn {
    transition: all 0.2s ease;
}

.rooms-enter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(10, 114, 232, 0.3);
}

/* Featured rooms carousel */
.rooms-featured-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
}

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

.rooms-featured-title {
    color: #2d3436;
    font-weight: 600;
    font-size: 1rem;
}

.rooms-featured-description {
    color: #636e72;
    font-size: 0.85rem;
    min-height: 40px;
}

.rooms-featured-info {
    font-size: 0.8rem;
}

/* Sidebar styling */
.rooms-sidebar-header {
    background-color: #2d3436 !important;
    color: white !important;
    border-bottom: none;
}

.rooms-sidebar-header h6,
.rooms-sidebar-header h6 * {
    color: white !important;
}

.rooms-sidebar-stat {
    font-size: 0.9rem;
}

.rooms-sidebar-stat strong {
    color: #2d3436;
    font-size: 1.1rem;
}

/* Dark mode rooms */
[data-theme="dark"] .rooms-page-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .rooms-page-title i {
    color: #d63031;
}

[data-theme="dark"] .rooms-stat-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .rooms-stat-card i {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .rooms-stat-card .stat-number {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .rooms-header-featured {
    background-color: #d63031 !important;
    color: white !important;
}

[data-theme="dark"] .rooms-form-label {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .rooms-form-input,
[data-theme="dark"] .rooms-form-select {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .rooms-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .rooms-thumbnail-wrapper {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .rooms-placeholder {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .rooms-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .rooms-description {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .rooms-owner-link {
    color: #0a72e8;
}

[data-theme="dark"] .rooms-owner-link:hover {
    color: #3d8ef5;
}

[data-theme="dark"] .rooms-featured-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .rooms-featured-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .rooms-featured-description {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .rooms-sidebar-header {
    background-color: #2d3436 !important;
    color: white !important;
}

[data-theme="dark"] .rooms-sidebar-stat strong {
    color: var(--text-primary) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rooms-stat-card .stat-number {
        font-size: 1.5rem;
    }
    
    .rooms-card {
        margin-bottom: 1rem;
    }
    
    .rooms-thumbnail-wrapper {
        height: 120px;
    }
    
    .rooms-featured-card {
        margin-bottom: 1rem;
    }
}

/* ============================================
   MARKETPLACE PAGE STYLING
   ============================================ */

.marketplace-page-title {
    color: #2d3436;
}

.marketplace-page-title i {
    color: #d63031;
}

.marketplace-stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    background-color: #fff;
}

.marketplace-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

.marketplace-stat-card i {
    color: #2d3436;
}

.marketplace-stat-card .stat-number {
    color: #2d3436;
    font-size: 2rem;
    font-weight: 600;
}

.marketplace-form-label {
    color: #2d3436;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.marketplace-form-input,
.marketplace-form-select {
    border-color: #ced4da;
    border-radius: 4px;
}

.marketplace-form-input:focus,
.marketplace-form-select:focus {
    border-color: #0a72e8;
    box-shadow: 0 0 0 0.2rem rgba(10, 114, 232, 0.25);
}

.marketplace-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
}

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

.marketplace-item-image-wrapper {
    height: 150px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.marketplace-item-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.marketplace-item-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    background-color: #e9ecef;
    border: 2px dashed #adb5bd;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #6c757d;
    font-size: 12px;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
}

.marketplace-item-placeholder i {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.marketplace-item-title {
    color: #2d3436;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    min-height: 40px;
}

.marketplace-price {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.marketplace-item-info {
    font-size: 0.85rem;
}

.marketplace-seller-link {
    color: #0a72e8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.marketplace-seller-link:hover {
    color: #095bb8;
    text-decoration: none;
}

.marketplace-view-btn {
    transition: all 0.2s ease;
}

.marketplace-view-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(10, 114, 232, 0.3);
}

/* Sidebar styling */
.marketplace-sidebar-header {
    background-color: #2d3436 !important;
    color: white !important;
    border-bottom: none;
}

.marketplace-sidebar-header h6,
.marketplace-sidebar-header h6 * {
    color: white !important;
}

.marketplace-sidebar-stat {
    font-size: 0.9rem;
}

.marketplace-sidebar-stat strong {
    color: #2d3436;
    font-size: 1.1rem;
}

.marketplace-sidebar-listing {
    transition: background-color 0.2s ease;
    border-radius: 4px;
    padding: 0.5rem;
    margin: -0.5rem;
}

.marketplace-sidebar-listing:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.marketplace-sidebar-thumb {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
    border: 2px solid #e0e0e0;
    flex-shrink: 0;
    background-color: #f8f9fa;
    padding: 4px;
}

.marketplace-sidebar-placeholder {
    width: 50px;
    height: 50px;
    background-color: #e9ecef;
    border: 2px dashed #adb5bd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    flex-shrink: 0;
}

.marketplace-sidebar-placeholder i {
    font-size: 20px;
    opacity: 0.5;
}

/* Dark mode marketplace */
[data-theme="dark"] .marketplace-page-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .marketplace-page-title i {
    color: #d63031;
}

[data-theme="dark"] .marketplace-stat-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .marketplace-stat-card i {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .marketplace-stat-card .stat-number {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .marketplace-form-label {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .marketplace-form-input,
[data-theme="dark"] .marketplace-form-select {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .marketplace-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .marketplace-item-image-wrapper {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .marketplace-item-placeholder {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .marketplace-item-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .marketplace-price {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .marketplace-seller-link {
    color: #0a72e8;
}

[data-theme="dark"] .marketplace-seller-link:hover {
    color: #3d8ef5;
}

[data-theme="dark"] .marketplace-sidebar-header {
    background-color: #2d3436 !important;
    color: white !important;
}

[data-theme="dark"] .marketplace-sidebar-stat strong {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .marketplace-sidebar-listing:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .marketplace-sidebar-thumb {
    border-color: var(--border-color);
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .marketplace-sidebar-placeholder {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .marketplace-stat-card .stat-number {
        font-size: 1.5rem;
    }
    
    .marketplace-card {
        margin-bottom: 1rem;
    }
    
    .marketplace-item-image-wrapper {
        height: 120px;
    }
    
    .marketplace-sidebar-thumb {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   REFERRAL CARD STYLING (/me page)
   ============================================ */

.referral-card {
    border-radius: 8px;
    overflow: hidden;
}

.referral-card-header {
    background: linear-gradient(135deg, #d63031 0%, #a02020 100%) !important;
    color: white !important;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.referral-card-header h4,
.referral-card-header h4 * {
    color: white !important;
}

.referral-section-title {
    color: #2d3436;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.referral-link-wrapper {
    position: relative;
}

.referral-link-input {
    background-color: #f8f9fa;
    border-color: #ced4da;
    font-family: monospace;
    font-size: 0.9rem;
    color: #2d3436;
}

.referral-link-input:focus {
    background-color: #fff;
    border-color: #0a72e8;
    box-shadow: 0 0 0 0.2rem rgba(10, 114, 232, 0.25);
}

.referral-copy-btn {
    transition: all 0.2s ease;
    border-left: none;
}

.referral-copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(10, 114, 232, 0.3);
}

.referral-description {
    color: #636e72;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.referral-stat-item {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #0a72e8;
    transition: all 0.2s ease;
}

.referral-stat-item:hover {
    background-color: #e9ecef;
    transform: translateX(4px);
}

.referral-stat-icon {
    opacity: 0.3;
}

.referral-claim-btn {
    transition: all 0.2s ease;
    font-weight: 600;
    padding: 0.75rem;
}

.referral-claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Dark mode referral card */
[data-theme="dark"] .referral-card-header {
    background: linear-gradient(135deg, #d63031 0%, #a02020 100%) !important;
    color: white !important;
}

[data-theme="dark"] .referral-section-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .referral-link-input {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .referral-link-input:focus {
    background-color: var(--bg-card) !important;
    border-color: #0a72e8;
}

[data-theme="dark"] .referral-description {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .referral-stat-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: #0a72e8;
}

[data-theme="dark"] .referral-stat-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .referral-section-title {
        font-size: 1rem;
    }
    
    .referral-stat-item {
        padding: 0.75rem;
    }
    
    .referral-stat-icon {
        display: none;
    }
}

/* ============================================
   CLIENT DOWNLOAD CARD STYLING (/me page)
   ============================================ */

.client-download-card {
    border-radius: 8px;
    overflow: hidden;
}

.client-download-header {
    background: linear-gradient(135deg, #0a72e8 0%, #0056b3 100%) !important;
    color: white !important;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.client-download-header h4,
.client-download-header h4 * {
    color: white !important;
}

.client-download-title {
    color: #2d3436;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.client-download-description {
    color: #636e72;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.client-download-features {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

.client-download-icon {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.client-download-card:hover .client-download-icon {
    opacity: 1;
    transform: scale(1.05);
}

.client-download-btn {
    transition: all 0.2s ease;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(10, 114, 232, 0.3);
}

.client-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 114, 232, 0.5);
    background-color: #0056b3;
}

/* Dark mode client download card */
[data-theme="dark"] .client-download-header {
    background: linear-gradient(135deg, #0a72e8 0%, #0056b3 100%) !important;
    color: white !important;
}

[data-theme="dark"] .client-download-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .client-download-description {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .client-download-features {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: #28a745;
}

[data-theme="dark"] .client-download-features small {
    color: var(--text-secondary) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .client-download-title {
        font-size: 1rem;
    }
    
    .client-download-description {
        font-size: 0.9rem;
    }
    
    .client-download-icon {
        font-size: 3rem !important;
    }
    
    .client-download-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}

/* ============================================
   ROOM THUMBNAIL FRAME STYLING (/home page)
   ============================================ */

.room-thumbnail-frame {
    height: 110px;
    width: 110px;
    display: inline-block;
    position: relative;
    padding: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.room-thumbnail-frame:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #0a72e8;
}

.room-thumbnail-frame .thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.room-thumbnail-frame .thumbnail-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
}

.room-thumbnail-frame .room-icon__thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.room-thumbnail-frame:hover .room-icon__thumbnail {
    transform: scale(1.05);
}

.room-thumbnail-frame .room-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    background-color: #e9ecef;
    border: 2px dashed #adb5bd;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #6c757d;
    font-size: 11px;
    text-align: center;
    padding: 5px;
}

.room-thumbnail-frame .room-placeholder i {
    font-size: 24px;
    margin-bottom: 5px;
    opacity: 0.5;
}

/* Dark mode room thumbnail frame */
[data-theme="dark"] .room-thumbnail-frame {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: var(--border-color);
}

[data-theme="dark"] .room-thumbnail-frame:hover {
    border-color: #0a72e8;
    box-shadow: 0 4px 12px rgba(10, 114, 232, 0.2);
}

[data-theme="dark"] .room-thumbnail-frame .room-placeholder {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

/* ============================================
   REFERRAL PAGE STYLING (/referral)
   ============================================ */

.referral-page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.referral-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 0.5rem;
}

.referral-page-subtitle {
    font-size: 1.1rem;
    color: #636e72;
    margin-bottom: 0;
}

.referral-stat-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    height: 100%;
}

.referral-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.referral-stat-icon {
    opacity: 0.8;
}

.referral-stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.referral-stat-label {
    color: #636e72;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.referral-link-card {
    border-radius: 8px;
    overflow: hidden;
}

.referral-link-header {
    background: linear-gradient(135deg, #0a72e8 0%, #0056b3 100%) !important;
    color: white !important;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.referral-link-header h5,
.referral-link-header h5 * {
    color: white !important;
}

.referral-link-input {
    background-color: #f8f9fa;
    border-color: #ced4da;
    font-family: monospace;
    font-size: 0.9rem;
    color: #2d3436;
}

.referral-link-input:focus {
    background-color: #fff;
    border-color: #0a72e8;
    box-shadow: 0 0 0 0.2rem rgba(10, 114, 232, 0.25);
}

.referral-copy-btn {
    transition: all 0.2s ease;
    border-left: none;
}

.referral-copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(10, 114, 232, 0.3);
}

.referral-info-box {
    background-color: #e7f3ff;
    border-left: 3px solid #0a72e8;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    color: #0056b3;
    font-size: 0.9rem;
}

.referral-referred-card {
    border-radius: 8px;
    overflow: hidden;
}

.referral-referred-header {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
    color: white !important;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.referral-referred-header h5,
.referral-referred-header h5 * {
    color: white !important;
}

.referral-referred-avatar {
    flex-shrink: 0;
}

.referral-table {
    font-size: 0.9rem;
}

.referral-table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #2d3436;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.referral-table tbody tr {
    transition: background-color 0.2s ease;
}

.referral-table tbody tr:hover {
    background-color: #f8f9fa;
}

.referral-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

.referral-username-link {
    color: #0a72e8;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.referral-username-link:hover {
    color: #0056b3;
    text-decoration: none;
}

.referral-reward-badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
}

.referral-empty-state {
    padding: 3rem 1rem;
}

.referral-leaderboard-card {
    border-radius: 8px;
    overflow: hidden;
}

.referral-leaderboard-header {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    color: white !important;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.referral-leaderboard-header h5,
.referral-leaderboard-header h5 * {
    color: white !important;
}

.referral-leaderboard-list {
    max-height: 600px;
    overflow-y: auto;
}

.referral-leaderboard-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

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

.referral-leaderboard-item:hover {
    background-color: #f8f9fa;
}

.referral-leaderboard-item-me {
    background-color: #e7f3ff;
    border-left: 3px solid #0a72e8;
}

.referral-leaderboard-rank {
    width: 30px;
    text-align: center;
    font-weight: 700;
    color: #636e72;
    flex-shrink: 0;
}

.referral-rank-number {
    font-size: 0.9rem;
}

.referral-leaderboard-avatar {
    flex-shrink: 0;
}

.referral-leaderboard-username {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.referral-leaderboard-username a {
    color: #2d3436;
    text-decoration: none;
    transition: color 0.2s ease;
}

.referral-leaderboard-username a:hover {
    color: #0a72e8;
    text-decoration: none;
}

.referral-leaderboard-stats {
    font-size: 0.8rem;
}

.badge-sm {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

/* Dark mode referral page */
[data-theme="dark"] .referral-page-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .referral-page-subtitle {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .referral-stat-label {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .referral-link-input {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .referral-link-input:focus {
    background-color: var(--bg-card) !important;
    border-color: #0a72e8;
}

[data-theme="dark"] .referral-info-box {
    background-color: rgba(10, 114, 232, 0.1);
    border-left-color: #0a72e8;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .referral-table thead th {
    color: var(--text-primary) !important;
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .referral-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .referral-avatar-placeholder {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

[data-theme="dark"] .referral-username-link {
    color: #4da3ff;
}

[data-theme="dark"] .referral-username-link:hover {
    color: #66b3ff;
}

[data-theme="dark"] .referral-leaderboard-item {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .referral-leaderboard-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .referral-leaderboard-item-me {
    background-color: rgba(10, 114, 232, 0.15);
    border-left-color: #0a72e8;
}

[data-theme="dark"] .referral-leaderboard-rank {
    color: var(--text-secondary);
}

[data-theme="dark"] .referral-leaderboard-username a {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .referral-leaderboard-username a:hover {
    color: #4da3ff;
}

[data-theme="dark"] .referral-leaderboard-stats {
    color: var(--text-secondary) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .referral-page-title {
        font-size: 2rem;
    }
    
    .referral-page-subtitle {
        font-size: 1rem;
    }
    
    .referral-stat-number {
        font-size: 1.5rem;
    }
    
    .referral-leaderboard-list {
        max-height: 400px;
    }
}

/* ============================================
   NOTIFICATION ALERTS STYLING
   ============================================ */

.notification-alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease-out;
    position: relative;
    z-index: 1030; /* Lower than dropdown menus (z-index: 1060) */
}

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

.notification-alert.alert-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white !important;
}

.notification-alert.alert-success * {
    color: white !important;
}

.notification-alert.alert-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white !important;
}

.notification-alert.alert-danger * {
    color: white !important;
}

.notification-alert.alert-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white !important;
}

.notification-alert.alert-info * {
    color: white !important;
}

.notification-alert.alert-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529 !important;
}

.notification-alert.alert-warning * {
    color: #212529 !important;
}

.notification-alert i {
    font-size: 1.1rem;
    vertical-align: middle;
}

.notification-alert .close {
    color: inherit;
    opacity: 0.8;
    text-shadow: none;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.notification-alert .close:hover {
    opacity: 1;
}

.notification-alert ul {
    margin-top: 0.5rem;
}

.notification-alert ul li {
    margin-bottom: 0.25rem;
}

/* Dark mode notifications */
[data-theme="dark"] .notification-alert.alert-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

[data-theme="dark"] .notification-alert.alert-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

[data-theme="dark"] .notification-alert.alert-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

[data-theme="dark"] .notification-alert.alert-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

/* Legacy error/success divs styling */
.errorSucces {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white !important;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
}

.errorSucces * {
    color: white !important;
}

.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white !important;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
}

.error * {
    color: white !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notification-alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .notification-alert .close {
        font-size: 1.25rem;
    }
}

/* ============================================
   REGISTER PAGE STYLING (/register)
   ============================================ */

.register-page {
    min-height: calc(100vh - 200px);
}

.register-page-header {
    margin-bottom: 2rem;
}

.register-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 0.5rem;
}

.register-page-subtitle {
    font-size: 1.1rem;
    color: #636e72;
    margin-bottom: 0;
}

.register-card {
    border-radius: 8px;
    overflow: hidden;
}

.register-card-header {
    background: linear-gradient(135deg, #0a72e8 0%, #0056b3 100%) !important;
    color: white !important;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.register-card-header h4,
.register-card-header h4 * {
    color: white !important;
}

.register-form-group {
    margin-bottom: 1.5rem;
}

.register-form-label {
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.register-form-input {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.register-form-input:focus {
    border-color: #0a72e8;
    box-shadow: 0 0 0 0.2rem rgba(10, 114, 232, 0.25);
}

.register-form-help {
    color: #636e72;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

.register-feedback {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    min-height: 20px;
}

.register-feedback .text-success {
    color: #28a745 !important;
}

.register-feedback .text-danger {
    color: #dc3545 !important;
}

.register-password-strength {
    margin-top: 0.5rem;
}

.register-password-strength-bar {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

/* Gender Selection Styles */
.register-gender-selection {
    display: flex;
    gap: 15px;
    margin-bottom: 0.5rem;
}

.register-gender-radio {
    display: none;
}

.register-gender-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    font-weight: 500;
    min-height: 60px;
}

.register-gender-male {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
}

.register-gender-female {
    background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
    color: white;
}

.register-gender-icon {
    font-size: 24px;
    font-weight: bold;
    opacity: 0.9;
}

.register-gender-label {
    font-size: 16px;
}

.register-gender-indicator {
    position: absolute;
    right: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    transition: all 0.3s ease;
}

.register-gender-radio:checked + .register-gender-btn {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.register-gender-radio:checked + .register-gender-male {
    background: linear-gradient(135deg, #357ABD 0%, #2E6DA4 100%);
}

.register-gender-radio:checked + .register-gender-female {
    background: linear-gradient(135deg, #C2185B 0%, #AD1457 100%);
}

.register-gender-radio:checked + .register-gender-btn .register-gender-indicator {
    background: white;
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

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

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

/* Dark mode support for gender selection */
[data-theme="dark"] .register-gender-male {
    background: linear-gradient(135deg, #5A9FE2 0%, #4A8ACD 100%);
}

[data-theme="dark"] .register-gender-female {
    background: linear-gradient(135deg, #F91E73 0%, #D2286B 100%);
}

[data-theme="dark"] .register-gender-radio:checked + .register-gender-male {
    background: linear-gradient(135deg, #4A8ACD 0%, #3A7ABD 100%);
}

[data-theme="dark"] .register-gender-radio:checked + .register-gender-female {
    background: linear-gradient(135deg, #D2286B 0%, #C2185B 100%);
}

/* Responsive gender selection */
@media (max-width: 576px) {
    .register-gender-selection {
        flex-direction: column;
        gap: 10px;
    }
    
    .register-gender-btn {
        min-height: 55px;
        padding: 12px 15px;
    }
    
    .register-gender-icon {
        font-size: 20px;
    }
    
    .register-gender-label {
        font-size: 14px;
    }
}

/* Birth Date Input Styling */
.register-birth-date-input {
    cursor: pointer;
}

.register-birth-date-input:focus {
    border-color: #0a72e8;
    box-shadow: 0 0 0 0.2rem rgba(10, 114, 232, 0.25);
}

/* Flatpickr Calendar Styling */
.flatpickr-calendar {
    font-family: 'Open Sans', sans-serif;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.flatpickr-months {
    background: #0a72e8;
    border-radius: 8px 8px 0 0;
    padding: 10px;
}

.flatpickr-month {
    color: white;
}

.flatpickr-current-month {
    color: white;
    font-weight: 600;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    color: white;
    fill: white;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.flatpickr-weekdays {
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.flatpickr-weekday {
    color: #2d3436;
    font-weight: 600;
    font-size: 13px;
}

.flatpickr-day {
    border-radius: 4px;
    transition: all 0.2s ease;
}

.flatpickr-day:hover {
    background: #e9ecef;
    border-color: #0a72e8;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #0a72e8;
    border-color: #0a72e8;
    color: white;
    font-weight: 600;
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #085bb8;
    border-color: #085bb8;
}

.flatpickr-day.today {
    border-color: #0a72e8;
    font-weight: 600;
}

.flatpickr-day.today:hover {
    background: #e3f2fd;
}

.flatpickr-day.flatpickr-disabled {
    color: #adb5bd;
    cursor: not-allowed;
}

.flatpickr-day.flatpickr-disabled:hover {
    background: transparent;
}

/* Dark mode support for Flatpickr */
[data-theme="dark"] .flatpickr-calendar {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .flatpickr-weekdays {
    background: var(--bg-secondary);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .flatpickr-weekday {
    color: var(--text-primary);
}

[data-theme="dark"] .flatpickr-day {
    color: var(--text-primary);
}

[data-theme="dark"] .flatpickr-day:hover {
    background: var(--bg-secondary);
    border-color: #0a72e8;
}

[data-theme="dark"] .flatpickr-day.today {
    border-color: #0a72e8;
}

[data-theme="dark"] .flatpickr-day.today:hover {
    background: rgba(10, 114, 232, 0.2);
}

[data-theme="dark"] .flatpickr-day.flatpickr-disabled {
    color: #6c757d;
}

.register-password-strength-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.register-password-strength-danger {
    background-color: #dc3545;
}

.register-password-strength-warning {
    background-color: #ffc107;
}

.register-password-strength-info {
    background-color: #17a2b8;
}

.register-password-strength-success {
    background-color: #28a745;
}

.register-captcha-wrapper {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.register-turnstile-wrapper {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    min-height: 65px;
}

/* Cloudflare Turnstile widget styling */
.cf-turnstile {
    margin: 0 auto;
}

/* Dark mode support for Turnstile */
[data-theme="dark"] .cf-turnstile {
    filter: brightness(0.9);
}

.register-form-check {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #0a72e8;
}

.register-form-check label {
    font-size: 0.9rem;
    color: #2d3436;
    margin-left: 0.5rem;
}

.register-link {
    color: #0a72e8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.register-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.register-submit-btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.register-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.5);
}

.register-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.register-benefits-card {
    border-radius: 8px;
    overflow: hidden;
}

.register-benefits-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.register-benefits-header h5,
.register-benefits-header h5 * {
    color: white !important;
}

.register-benefit-item {
    text-align: center;
    padding: 1rem 0;
}

.register-benefit-item h6 {
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 0.5rem;
}

.register-benefit-item p {
    color: #636e72;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.register-illustration-wrapper {
    position: sticky;
    top: 20px;
}

.register-illustration-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: 40px;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .register-illustration-image {
        margin-left: 0;
        margin: 0 auto;
    }
}

/* Login Avatar Preview */
.login-username-field {
    position: relative;
}

.login-avatar-preview {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

/* Dark mode login avatar */
[data-theme="dark"] .login-avatar-preview {
    background: transparent;
}

/* Adjust input padding to make room for avatar */
.login-username-field .form-control {
    padding-right: 85px;
}

/* Responsive adjustments for login avatar */
@media (max-width: 576px) {
    .login-avatar-preview {
        width: 50px;
        height: 50px;
        right: 10px;
    }
    
    .login-username-field .form-control {
        padding-right: 70px;
    }
}

/* Dark mode register page */
[data-theme="dark"] .register-page-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .register-page-subtitle {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .register-form-label {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .register-form-input {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .register-form-input:focus {
    border-color: #0a72e8;
    background-color: var(--bg-card) !important;
}

[data-theme="dark"] .register-form-help {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .register-form-check {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: #0a72e8;
}

[data-theme="dark"] .register-form-check label {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .register-link {
    color: #4da3ff;
}

[data-theme="dark"] .register-link:hover {
    color: #66b3ff;
}

[data-theme="dark"] .register-benefit-item h6 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .register-benefit-item p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .register-password-strength-bar {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .register-page-title {
        font-size: 2rem;
    }
    
    .register-page-subtitle {
        font-size: 1rem;
    }
    
    .register-form-group {
        margin-bottom: 1.25rem;
    }
}

/* Sticky Footer Layout */
html,
body {
    height: 100%;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.main-content .container {
    flex: 1 0 auto;
    padding-bottom: 2rem;
}

footer,
.footer {
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
}

/* ============================================
   AD BANNERS
   ============================================ */

.ad-banner {
    display: block;
    margin-bottom: 1rem;
}

.ad-banner-link {
    display: block;
    text-decoration: none;
}

.ad-banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Left sidebar banner (160x600px) */
.ad-banner-left {
    width: 100%;
    max-width: 160px;
    margin: 0 auto;
}

.ad-banner-left-image {
    max-width: 160px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Content banner (728x250px) */
.ad-banner-content {
    width: 100%;
    max-width: 728px;
    margin: 0 auto;
}

.ad-banner-content-image {
    max-width: 728px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Top banner */
.ad-banner-top {
    width: 100%;
}

.ad-banner-top-image {
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

/* Bottom banner */
.ad-banner-bottom {
    width: 100%;
}

.ad-banner-bottom-image {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
}

/* Sidebar banner */
.ad-banner-sidebar {
    width: 100%;
}

.ad-banner-sidebar-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* Ad Banners */

/* Fix for v2 card background in dark mode */
[data-theme="dark"] .v2-card .card-body {
    background-color: transparent !important;
}
