/* Custom CSS untuk DaidaiDeals - HotUKDeals Style */

:root {
    --primary-color: #FDC90B;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #1a1a1a;
    --darker-bg: #0d0d0d;
    --card-bg: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --border-color: #404040;
    --hover-bg: #3a3a3a;
}

/* Light theme variables */
[data-theme="light"] {
    --darker-bg: #ffffff;
    --card-bg: #f8f9fa;
    --text-primary: #000000;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --hover-bg: #e9ecef;
    --dark-color: #f8f9fa;
}

/* Dark theme variables */
[data-theme="dark"] {
    --darker-bg: #0d0d0d;
    --card-bg: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --border-color: #404040;
    --hover-bg: #3a3a3a;
    --dark-color: #1a1a1a;
}



/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--darker-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Smooth transition for theme switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Rounded corners for modern look */
.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-top-4 {
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
}

.rounded-bottom-4 {
    border-bottom-left-radius: 1rem !important;
    border-bottom-right-radius: 1rem !important;
}


/* Vote buttons - HotUKDeals style */
.vote-btn {
    transition: all 0.2s ease-in-out;
    border-width: 2px;
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 16px;
}

.vote-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.vote-btn.active {
    transform: scale(1.1);
}

.vote-btn[data-vote-type="hot"] {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.vote-btn[data-vote-type="hot"]:hover {
    background-color: var(--primary-color);
    color: white;
}

.vote-btn[data-vote-type="hot"].active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.vote-btn[data-vote-type="cold"] {
    background-color: transparent;
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.vote-btn[data-vote-type="cold"]:hover {
    background-color: var(--text-muted);
    color: white;
}

.vote-btn[data-vote-type="cold"].active {
    background-color: var(--text-muted);
    border-color: var(--text-muted);
    color: white;
}

/* HotUKDeals Style Vote Box - New Implementation */
.bRad--a {
    border-radius: 50px !important; /* Fully rounded */
}

.space--h-1 {
    margin-left: 0.25rem !important;
    margin-right: 0.25rem !important;
}

.bRad--circle {
    border-radius: 50% !important; /* Perfect circle */
}

.vote-box--change {
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.fadeOuterEdge--r {
    position: relative;
    overflow: hidden;
}

.fadeOuterEdge--r::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: inherit;
    pointer-events: none;
}

.vote-box--toW3-onGrey {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
}

.vote-box--toW3-onGrey:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.vote-box--toW3-onGrey.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.threadListCard-header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
}

.search-form {
    width: 100%;
}

.search-input-group {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 8px 12px 8px 40px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--border-color);
    box-shadow: none;
    background-color: var(--card-bg);
}

.search-input::placeholder {
    color: #888;
}



/* Post Button */
.post-button {
    background: #FDC90B;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #FDC90B;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}



/* Dropdown Menus */
.dropdown-menu {
    background-color: var(--dark-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    padding: 8px 0;
    margin-top: 4px;
    min-width: 200px;
}

.dropdown-item {
    color: var(--text-primary);
    padding: 10px 20px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    text-decoration: none;
}

.dropdown-item i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.dropdown-divider {
    border-color: #444;
    margin: 8px 0;
}

/* Notification Badge */
.badge {
    font-size: 0.6rem;
    padding: 2px 5px;
}

/* Login Modal - Theme-aware styling */
.login-modal {
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

/* Signup Modal - Inherits from login-modal but with specific adjustments */
#signupModal .login-modal .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #ff8c42);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 999px; /* Pill shape */
    transition: all 0.3s ease;
    color: white;
}

#signupModal .login-modal .btn-primary:hover {
    background: linear-gradient(45deg, #e55a2b, var(--primary-color));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Light theme */
[data-theme="light"] .login-modal {
    background-color: #fff;
    color: #111;
}

[data-theme="light"] .login-modal .modal-title {
    color: #111;
}

[data-theme="light"] .login-modal .modal-subtitle {
    color: #666;
}

[data-theme="light"] .login-modal .form-label {
    color: #111;
}

[data-theme="light"] .login-modal .form-control {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #111;
}

[data-theme="light"] .login-modal .form-control::placeholder {
    color: #999;
}

[data-theme="light"] .login-modal .input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    color: #666;
    border-right: none;
}

[data-theme="light"] .login-modal .btn-close {
    background: none;
    border: none;
    color: #111;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

[data-theme="light"] .login-modal .btn-close:hover {
    opacity: 1;
}

[data-theme="light"] .login-modal .modal-header {
    border-bottom: 1px solid #ddd;
    background: #fff;
    border-radius: 12px 12px 0 0;
}

[data-theme="light"] .login-modal .btn-primary {
    background: #ff6600;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 999px; /* Pill shape */
    transition: all 0.3s ease;
    color: white;
}

[data-theme="light"] .login-modal .btn-primary:hover {
    background: #e85b00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

[data-theme="light"] .login-modal .divider-text {
    color: #666;
}

[data-theme="light"] .login-modal .divider-text::before,
[data-theme="light"] .login-modal .divider-text::after {
    background-color: #ddd;
}

[data-theme="light"] .btn-social {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #111;
    padding: 12px 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

[data-theme="light"] .btn-social:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
    color: #111;
    transform: translateY(-1px);
}

[data-theme="light"] .modal-footer-text {
    color: #666;
}

[data-theme="light"] .modal-footer-text a {
    color: black;
    font-weight: 500;
}

[data-theme="light"] .modal-footer-text a:hover {
    color: #e85b00;
}

/* Dark theme */
[data-theme="dark"] .login-modal {
    background-color: #1a1a1a;
    color: #fff;
}

[data-theme="dark"] .login-modal .modal-title {
    color: #fff;
}

[data-theme="dark"] .login-modal .modal-subtitle {
    color: #aaa;
}

[data-theme="dark"] .login-modal .form-label {
    color: #fff;
}

[data-theme="dark"] .login-modal .form-control {
    background-color: #2d2d2d;
    border: 1px solid #444;
    color: #fff;
}

[data-theme="dark"] .login-modal .form-control::placeholder {
    color: #888;
}

[data-theme="dark"] .login-modal .input-group-text {
    background-color: #2d2d2d;
    border: 1px solid #555;
    color: #ccc;
    border-right: none;
}

[data-theme="dark"] .login-modal .btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

[data-theme="dark"] .login-modal .btn-close:hover {
    opacity: 1;
}

[data-theme="dark"] .login-modal .modal-header {
    border-bottom: 1px solid #444;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px 12px 0 0;
}

[data-theme="dark"] .login-modal .btn-primary {
    background: linear-gradient(45deg, #ff6600, #ff8c42);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 999px; /* Pill shape */
    transition: all 0.3s ease;
    color: white;
}

[data-theme="dark"] .login-modal .btn-primary:hover {
    background: linear-gradient(45deg, #e55a00, #e57326);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

[data-theme="dark"] .login-modal .divider-text {
    color: #666;
}

[data-theme="dark"] .login-modal .divider-text::before,
[data-theme="dark"] .login-modal .divider-text::after {
    background-color: #444;
}

[data-theme="dark"] .btn-social {
    background-color: #2d2d2d;
    border: 1px solid #555;
    color: white;
    padding: 12px 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

[data-theme="dark"] .btn-social:hover {
    background-color: #333;
    border-color: #666;
    color: white;
    transform: translateY(-1px);
}

[data-theme="dark"] .modal-footer-text {
    color: #ccc;
}

[data-theme="dark"] .modal-footer-text a {
    color: black;
    font-weight: 500;
}

[data-theme="dark"] .modal-footer-text a:hover {
    color: #ff8c42;
}

/* Auto theme - follows system preference */
@media (prefers-color-scheme: light) {
    [data-theme="auto"] .login-modal {
        background-color: #fff;
        color: #111;
    }
    
    [data-theme="auto"] .login-modal .modal-title {
        color: #111;
    }
    
    [data-theme="auto"] .login-modal .modal-subtitle {
        color: #666;
    }
    
    [data-theme="auto"] .login-modal .form-label {
        color: #111;
    }
    
    [data-theme="auto"] .login-modal .form-control {
        background-color: #fff;
        border: 1px solid #ddd;
        color: #111;
    }
    
    [data-theme="auto"] .login-modal .form-control::placeholder {
        color: #999;
    }
    
    [data-theme="auto"] .login-modal .input-group-text {
        background-color: #f8f9fa;
        border: 1px solid #ddd;
        color: #666;
        border-right: none;
    }
    
    [data-theme="auto"] .login-modal .btn-close {
        color: #111;
    }
    
    [data-theme="auto"] .login-modal .modal-header {
        border-bottom: 1px solid #ddd;
        background: #fff;
    }
    
    [data-theme="auto"] .login-modal .btn-primary {
        background: #ff6600;
        color: white;
    }
    
    [data-theme="auto"] .login-modal .btn-primary:hover {
        background: #e85b00;
    }
    
    [data-theme="auto"] .login-modal .divider-text {
        color: #666;
    }
    
    [data-theme="auto"] .login-modal .divider-text::before,
    [data-theme="auto"] .login-modal .divider-text::after {
        background-color: #ddd;
    }
    
    [data-theme="auto"] .btn-social {
        background-color: #fff;
        border: 1px solid #ddd;
        color: #111;
    }
    
    [data-theme="auto"] .btn-social:hover {
        background-color: #f8f9fa;
        border-color: #ccc;
    }
    
    [data-theme="auto"] .modal-footer-text {
        color: #666;
    }
    
    [data-theme="auto"] .modal-footer-text a {
        color: black;
    }
    
    [data-theme="auto"] .modal-footer-text a:hover {
        color: #e85b00;
    }
}

@media (prefers-color-scheme: dark) {
    [data-theme="auto"] .login-modal {
        background-color: #1a1a1a;
        color: #fff;
    }
    
    [data-theme="auto"] .login-modal .modal-title {
        color: #fff;
    }
    
    [data-theme="auto"] .login-modal .modal-subtitle {
        color: #aaa;
    }
    
    [data-theme="auto"] .login-modal .form-label {
        color: #fff;
    }
    
    [data-theme="auto"] .login-modal .form-control {
        background-color: #2d2d2d;
        border: 1px solid #444;
        color: #fff;
    }
    
    [data-theme="auto"] .login-modal .form-control::placeholder {
        color: #888;
    }
    
    [data-theme="auto"] .login-modal .input-group-text {
        background-color: #2d2d2d;
        border: 1px solid #555;
        color: #ccc;
        border-right: none;
    }
    
    [data-theme="auto"] .login-modal .btn-close {
        color: white;
    }
    
    [data-theme="auto"] .login-modal .modal-header {
        border-bottom: 1px solid #444;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    
    [data-theme="auto"] .login-modal .btn-primary {
        background: linear-gradient(45deg, #ff6600, #ff8c42);
        color: white;
    }
    
    [data-theme="auto"] .login-modal .btn-primary:hover {
        background: linear-gradient(45deg, #e55a00, #e57326);
    }
    
    [data-theme="auto"] .login-modal .divider-text {
        color: #666;
    }
    
    [data-theme="auto"] .login-modal .divider-text::before,
    [data-theme="auto"] .login-modal .divider-text::after {
        background-color: #444;
    }
    
    [data-theme="auto"] .btn-social {
        background-color: #2d2d2d;
        border: 1px solid #555;
        color: white;
    }
    
    [data-theme="auto"] .btn-social:hover {
        background-color: #333;
        border-color: #666;
    }
    
    [data-theme="auto"] .modal-footer-text {
        color: #ccc;
    }
    
    [data-theme="auto"] .modal-footer-text a {
        color: black;
    }
    
    [data-theme="auto"] .modal-footer-text a:hover {
        color: #ff8c42;
    }
}

/* Social button icons */
.btn-social i {
    font-size: 1.2rem;
}

.btn-social:nth-child(1) i {
    color: #4285f4; /* Google Blue */
}

.btn-social:nth-child(2) i {
    color: #000; /* Apple Black */
}

.btn-social:nth-child(3) i {
    color: #1877f2; /* Facebook Blue */
}
/* Mobile: sembunyikan teks, hanya tampil ikon sejajar */
@media (max-width: 768px) {
  .social-login {
    display: flex;
    justify-content: center;
    gap: 10px;              /* jarak antar tombol */
    flex-wrap: nowrap;      /* jangan turun ke bawah */
  }

  .social-login .btn {
    width: 50px;            /* ubah tombol jadi kotak */
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
  }

  .social-login .social-text {
    display: none;          /* sembunyikan teks */
  }

  .social-login i {
    font-size: 1.5rem;      /* perbesar ikon */
  }
}

/* Modal Responsive */
@media (max-width: 576px) {
    .login-modal {
        margin: 1rem;
        max-width: none;
    }
    
    .login-modal .modal-header,
    .login-modal .modal-body {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .divider-text::before,
    .divider-text::after {
        width: 50px;
    }
    
    .divider-text::before {
        left: -60px;
    }
    
    .divider-text::after {
        right: -60px;
    }
}

/* Modal Animation - Smooth from Top */
.modal.fade .modal-dialog {
    transform: translateY(-50px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(2px);
}

/* Password Field Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px;
    }
}

#passwordField {
    overflow: hidden;
    transition: all 0.3s ease-out;
}

/* Modal Responsive */
@media (max-width: 576px) {
    .login-modal {
        margin: 1rem;
        max-width: none;
    }
    
    .login-modal .modal-header,
    .login-modal .modal-body {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .divider-text::before,
    .divider-text::after {
        width: 50px;
    }
    
    .divider-text::before {
        left: -60px;
    }
    
    .divider-text::after {
        right: -60px;
    }

    
}/* Tombol Hamburger Menu */
.hamburger-menu {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 18px;
    color: var(--text-primary);
    font-family: Arial, sans-serif;
    font-size: 11px;
    height: 32px; /* cocokkan dengan tinggi search bar */
    cursor: pointer;
    margin-left: -50px;
    vertical-align: middle;
}

/* Ikon Hamburger */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 10px;
    width: 14px;
}

.hamburger-icon span {
    display: block;
    height: 1.2px;
    background-color: var(--text-primary);
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Teks "Menu" */
.menu-text {
    font-size: 11px;
    white-space: nowrap;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* Ensure proper alignment of icon and text */
.hamburger-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hover effect */
.hamburger-menu:hover .hamburger-icon span {
    background-color: var(--primary-color);
}

/* Active state */
.hamburger-menu.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.hamburger-menu.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Ensure hamburger menu is hidden on mobile layouts */
@media (max-width: 767.98px) {
    .hamburger-menu {
        display: none !important;
    }
}



/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%; /* slide penuh dari kiri */
    width: 320px;
    height: 100vh;
    background: var(--card-bg);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1060;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
    border-radius: 0 20px 20px 0; /* Curved corners on right side */
}

/* aktif */
.sidebar.show {
    left: 0;
}

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

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

/* Header */
.sidebar-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 7px 20px;
     border-bottom: 1px solid var(--border-color);
     background: var(--dark-color);
     border-radius: 0 20px 0 0; /* Curved top-right corner */
}

.sidebar-content {
    padding: 20px;
}

.sidebar-section {
    margin-bottom: 1rem; /* Add consistent spacing between sections */
}

.sidebar-title {
    margin: 0;
    font-size: 16px; /* sama categories-title */
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background-color: rgba(0,0,0,0.05);
    color: var(--text-primary);
}

/* Menu */
.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    margin: 0;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 10px 0; /* Match category-item padding */
    text-decoration: none;
    color: var(--text-primary);
    font-size: 15px; /* Match category item font size */
    font-weight: 500;
    transition: background-color 0.2s;
}

/* Add spacing between icon and text in menu links */
.menu-link i {
    margin-right: 10px; /* Same spacing as category items */
}

.menu-link:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px; /* Maintain curved corners on hover */
}

/* Position chevron-right icons to the right */
.menu-link .bi-chevron-right {
    margin-left: auto;
    color: #adb5bd;
    font-size: 14px;
}

/* Divider & Section Title */
.sidebar-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 1rem 0;
}

.sidebar-section-title {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.5rem 20px;
    padding-top: 0.5rem;
}

/* Label "Appearance" */
.appearance-toggle span {
    flex: 1;
}

/* Controls */
.appearance-controls {
    display: inline-flex;
    border: 1px solid var(--border-color);
    border-radius: 20px; /* curved kanan kiri */
    overflow: hidden;    /* rapat */
    margin-left: auto; /* Align to the right like category arrows */
}

/* Buttons */
.appearance-btn {
    background: #fff;
    border: none; /* hilangkan border antar tombol */
    color: #6c757d;
    min-width: 40px; /* cukup untuk teks Auto */
    height: 30px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sun and Moon icon styling for the original buttons */
.appearance-btn[data-theme="light"] i.bi-sun {
   
    font-size: 1rem;
    position: relative;
    left: 5px; /* Adjust this value to move left (-) or right (+) */
}

.appearance-btn[data-theme="dark"] i.bi-moon {
  
    font-size: 1rem;
    position: relative;
    left: 5px; /* Adjust this value to move left (-) or right (+) */
}

/* Active */
.appearance-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Ensure appearance section stays white in all themes */
[data-theme="dark"] .appearance-toggle,
[data-theme="light"] .appearance-toggle,
[data-theme="auto"] .appearance-toggle {
    background-color: var(--card-bg) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

/* Sidebar Dropdown */
.sidebar-dropdown {
    position: static;
    background-color: var(--card-bg);
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-dropdown.show {
    max-height: 500px;
}

.sidebar-dropdown .dropdown-item {
    padding: 8px 1.5rem 8px 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.sidebar-dropdown .dropdown-item:hover {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-dropdown .dropdown-divider {
    margin: 0.5rem 0;
    background-color: var(--border-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .search-container {
        display: none;
    }
    
    .header-link span {
        display: none;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-list .nav-link {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 280px;
        left: -280px;
    }
    
    .hamburger-menu {
        margin-right: 8px;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .top-header .container {
        padding: 0 1rem;
    }
    
    .top-header .d-flex {
        gap: 1rem;
        align-items: center;
    }
    
    .header-link {
        padding: 6px 8px;
    }
    
    .post-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .nav-list {
        overflow-x: auto;
        white-space: nowrap;
        padding: 8px 0;
    }
    
    .nav-list .nav-item {
        flex-shrink: 0;
    }
}
/* Buttons */
.btn {
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    border: none;
}

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

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

.btn-primary:hover {
    background-color: #e55a2b;
    color: white;
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* Forms - HotUKDeals style */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-primary);
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: var(--border-color);
    box-shadow: none;
    background-color: var(--card-bg);
    color: var(--text-primary);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.input-group-text {
    border-radius: 8px 0 0 8px;
    border: 2px solid var(--border-color);
    border-right: none;
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

.input-group-text:hover,
.input-group-text:focus {
    border-color: var(--border-color);
    background-color: var(--hover-bg);
    outline: none;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.input-group .form-control:hover,
.input-group .form-control:focus {
    border-color: var(--border-color);
    box-shadow: none;
    outline: none;
}

/* Alerts - HotUKDeals style */
.alert {
    border: none;
    border-radius: 8px;
    font-weight: 500;
    border-left: 4px solid;
}

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

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

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left-color: var(--warning-color);
    color: var(--warning-color);
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    border-left-color: var(--info-color);
    color: var(--info-color);
}


/* Badges - HotUKDeals style */
.badge {
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    padding: 6px 12px;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Hero Section - HotUKDeals style */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c42 100%);
    color: white;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-radius: 0 0 24px 24px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}


/* Promotional Banner */
.promotional-banner {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffcc02 100%);
    padding: 20px 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.promotional-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,20 Q50,5 80,20 Q95,50 80,80 Q50,95 20,80 Q5,50 20,20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>') repeat;
    opacity: 0.3;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.banner-text {
    flex: 1;
}

.banner-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.banner-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

.banner-badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    padding: 12px 20px;
    text-align: center;
    min-width: 140px;
}

.badge-text {
    display: block;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.badge-subtitle {
    display: block;
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem;
    font-weight: 400;
}

/* Responsive adjustments for HotUKDeals layout */
@media (max-width: 992px) {
    .hottest-deals-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .deal-card-horizontal .row {
        flex-direction: column;
    }
    
    .deal-card-horizontal .col-md-3 {
        width: 100%;
        max-width: 100%;
    }
    
    .deal-card-horizontal .col-md-9 {
        width: 100%;
        max-width: 100%;
    }
    
    .deal-card-horizontal img {
        height: 200px !important;
        border-radius: 8px 8px 0 0 !important;
    }
    
    
    /* Banner responsive */
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .banner-title {
        font-size: 1.25rem;
    }
    
    .banner-subtitle {
         font-size: 0.9rem;
     }
}
 

/* Categories Slide Panel */
 .categories-panel {
     position: fixed;
     top: 0;
     left: -100%;
     width: 320px;
     height: 100vh;
     background: var(--card-bg);
     box-shadow: 2px 0 10px rgba(0,0,0,0.1);
     z-index: 1060;
     transition: left 0.10s ease-in-out;
     overflow-y: auto;
    border-radius: 0 20px 20px 0; /* Curved top-left corner */
}

.categories-panel.show {
    left: 0;
}
 
 .categories-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 10px 15px;
     border-bottom: 1px solid var(--border-color);
     background: var(--dark-color);
     border-radius: 0 20px 0 0; /* Curved top-left corner */
}
 
 .categories-back {
     display: flex;
     align-items: center;
     gap: 8px;
     background: none;
     border: none;
     color: var(--text-muted);
     font-size: 14px;
     cursor: pointer;
     padding: 5px 0;
 }
 
 .categories-back:hover {
     color: var(--text-secondary);
 }
 
 .categories-title {
     margin: 0;
     font-size: 16px;
     font-weight: 600;
     color: var(--text-primary);
 }
 
 .categories-see-all {
     color: var(--primary-color);
     text-decoration: none;
     font-size: 14px;
     font-weight: 500;
 }
 
 .categories-see-all:hover {
     color: var(--primary-color);
     text-decoration: underline;
 }
 
 .categories-content {
     padding: 20px;
 }
 
 .categories-loading {
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 40px 20px;
     color: var(--text-muted);
 }
 
 .categories-list {
     display: none;
 }
 
 .categories-list.loaded {
     display: block;
 }
 
 .category-item {
     display: flex;
     align-items: center;
     padding: 10px 0;

     text-decoration: none;
     color: var(--text-primary);
     transition: background-color 0.2s;
 }
 
 .category-item:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px; /* Curved corners on hover to match sidebar */
}
 
 .category-item:last-child {
     border-bottom: none;
 }
 /* Icon transparan (tanpa kotak oranye) */
.category-icon {
    width: 24px;   /* lebih kecil */
    height: 24px;  /* proporsional */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
    background: transparent; /* hapus background gradient */
    border-radius: 0;        /* hilangkan lengkungan */
    
}

/* Icon warna default */
.category-icon i {
    color: var(--text-primary);  /* Match category name color */
    font-size: 16px; /* lebih kecil dari sebelumnya */
}

 
 .category-info {
     flex: 1;
 }
 
 .category-name {
     font-weight: 600;
     font-size: 14px;
     margin: 0 0 2px 0;
 
 }
 
 .category-arrow {
     color: var(--text-muted);
     font-size: 14px;
 }
 
 /* Categories Panel Overlay */
 .categories-overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0,0,0,0.5);
     z-index: 1055;
     opacity: 0;
     visibility: hidden;
     transition: all 0.3s ease-in-out;
 }
 
 @media (max-width: 768px) {
     .categories-panel {
         width: 100%;
         left: -100%;
     }
 }

/* Statistics Cards */
.stat-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--hover-bg) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

/* Comments */
.comment-item {
    transition: background-color 0.2s ease-in-out;
}

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

/* Admin sidebar */
.list-group-item {
    border: none;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.list-group-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Statistics cards */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-info {
    transition: transform 0.2s ease-in-out;
}

.card.bg-primary:hover,
.card.bg-success:hover,
.card.bg-warning:hover,
.card.bg-info:hover {
    transform: translateY(-3px);
}

/* Footer */
footer {
    margin-top: auto;
    background-color: var(--dark-color);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
}

footer h5 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

footer p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

footer a:hover {
    color: #ff8c42;
}

/* Text Colors - HotUKDeals style */
.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

/* Background Colors */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-dark {
    background-color: var(--dark-color) !important;
}

.bg-light {
    background-color: var(--card-bg) !important;
    color: var(--text-primary) !important;
}

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

/* List Group  */
.list-group-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
    transition: all 0.2s ease-in-out;
}

.list-group-item:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
    transform: translateX(5px);
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}    
    /* Dropdown */
    .dropdown-menu {
      background-color: var(--card-bg);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }

    .dropdown-item {
      color: var(--text-primary);
      transition: all 0.2s ease-in-out;
    }

    .dropdown-item:hover {
      background-color: var(--hover-bg);
      color: var(--primary-color);
    }

    /* Arrow floating */
    .carousel-air-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
      display: none; /* Hidden by default */
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: none;
      background: rgba(255, 255, 255, 0.9);
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
      cursor: pointer;
    }

    .carousel-air-arrow--left {
      left: 5px;
    }

    .carousel-air-arrow--right {
      right: 0.25rem;
    }

    .carousel-air-arrow i {
      font-size: 0.9rem;
    }

    /* Show arrows only on mobile when needed */
    @media (max-width: 768px) {
      .carousel-air-arrow {
        display: flex; /* Show on mobile */
      }
      
      .carousel-air-arrow--left {
        left: 0.25rem;
      }
      
      .carousel-air-arrow--right {
        right: 0.25rem;
      }
    }
    
    /* Hide arrows on desktop */
    @media (min-width: 769px) {
      .carousel-air-arrow {
        display: none !important;
      }
    }


/* Mobile Search Bar */
.mobile-search-bar {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background-color: var(--dark-color);
    border-top: 1px solid var(--border-color);
    z-index: 1029;
    padding: 10px 15px;
}

.mobile-search-bar .search-input-group {
    position: relative;
    width: 100%;
}

.mobile-search-bar .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
    z-index: 2;
}

.mobile-search-bar .search-input {
    width: 100%;
    padding: 8px 12px 8px 40px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.mobile-search-bar .search-input:focus {
    outline: none;
    border-color: var(--border-color);
    box-shadow: none;
    background-color: var(--card-bg);
}

.mobile-search-bar .search-input::placeholder {
    color: #888;
}



/* Mobile Search Bar in Header */
.top-header .search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 1rem;
}

.top-header .search-input-group {
    position: relative;
    width: 100%;
}

.top-header .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
    z-index: 2;
}

.top-header .search-input {
    width: 100%;
    padding: 8px 12px 8px 40px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.top-header .search-input:focus {
    outline: none;
    border-color: var(--border-color);
    box-shadow: none;
    background-color: var(--card-bg);
}

.top-header .search-input::placeholder {
    color: #888;
}

/* Mobile Header Search */
.mobile-header-search {
    flex: 1;
    max-width: 200px;
}

.mobile-header-search .search-form {
    width: 100%;
}

.mobile-header-search .search-input-group {
    width: 100%;
}

.mobile-header-search .search-input {
    padding: 6px 10px 6px 35px;
    font-size: 0.8rem;
    border-radius: 20px;
}

.mobile-header-search .search-icon {
    font-size: 0.8rem;
    left: 10px;
}

/* Adjustments for mobile view */
@media (max-width: 767.98px) {
    .top-header .container {
        padding: 0 10px;
    }
    
    .top-header .d-flex {
        gap: 10px;
    }
    
    /* Hide the main search bar on mobile */
    .top-header .search-container {
        display: none;
    }
    
    /* Show mobile search bar in header */
    .top-header .mobile-header-search {
        display: block !important;
        max-width: 150px;
    }
}



