/* Servurity Stylesheet - Clean & Minimal with Yellow-Orange Accent */

/* ========================================
   Prevent Overscroll/Bounce Effect
   ======================================== */
html, body {
    overscroll-behavior-y: none;
    overscroll-behavior-x: none;
}

/* ========================================
   Prevent Flash of Unstyled Content (FOUC)
   ======================================== */
html:not(.loaded) {
    visibility: hidden;
}

html.loaded {
    visibility: visible;
}

/* ========================================
   CSS Variables
   ======================================== */
:root {
    /* Light mode colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #dee2e6;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0,0,0,0.15);
    
    /* Accent colors - Yellow-Orange theme */
    --accent-primary: #ff9500;
    --accent-secondary: #ffb143;
    --accent-hover: #ff8000;
    --accent-light: #fff4e6;
    --accent-text: #ffffff;
    
    /* Status colors */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
}

[data-theme="dark"] {
    /* Dark mode colors */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #e4e4e4;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #404040;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0,0,0,0.5);
    --shadow-md: 0 0.5rem 1rem rgba(0,0,0,0.7);
    --accent-light: #3a2a1a;
}

/* ========================================
   Base Styles & Page Setup
   ======================================== */
html {
    visibility: hidden;
    opacity: 0;
}

html.loaded {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
}

hr {
    opacity: 0.1;
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    backdrop-filter: blur(5px);
    border-bottom-color: var(--border-color);
}

.navbar .navbar-brand img {
    transition: height 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 32px !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary) !important;
}

.navbar-brand .accent {
    color: var(--accent-primary);
}

/* Override Bootstrap nav CSS variables */
nav {
    --bs-nav-link-color: var(--text-secondary);
    --bs-nav-link-hover-color: var(--text-primary);
}

.nav-link {
    color: var(--text-secondary) !important;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary) !important;
}

.navbar-nav .nav-link.active {
    background-color: var(--accent-light);
    color: var(--accent-primary) !important;
}

/* Dark mode toggle */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ========================================
   Cards & Containers
   ======================================== */
.card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.glass-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-container {
    max-width: 450px;
    margin: 5rem auto;
}

.auth-card {
    background: var(--bg-primary);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
}

.stat-card {
    background: var(--bg-primary);
    border-left: 4px solid var(--accent-primary);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.stat-card h6 {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card h3 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
}

/* ========================================
   Buttons - Consolidated
   ======================================== */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}

/* Remove ALL focus and active states */
.btn,
.btn:focus,
.btn:active,
.btn:hover,
.btn:active:focus,
.btn.active,
.btn:focus-visible,
button:focus,
button:active,
button:focus-visible {
    box-shadow: none !important;
    outline: none !important;
}

/* Primary Button */
.btn-primary {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--accent-text);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-primary:active,
.btn-primary:active:focus {
    background-color: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
}

/* Outline Primary */
.btn-outline-primary {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-outline-primary:hover {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--accent-text);
}

.btn-outline-primary:active,
.btn-outline-primary:active:focus {
    background-color: transparent !important;
    border-color: var(--accent-primary) !important;
    color: var(--accent-primary) !important;
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
    --bs-btn-hover-color: none;
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

.btn-secondary:active,
.btn-secondary:active:focus {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.btn-outline-secondary:active,
.btn-outline-secondary:active:focus {
    background-color: transparent !important;
    border-color: #6c757d !important;
    color: #6c757d !important;
}

/* Status Buttons */
.btn-danger:active,
.btn-danger:active:focus {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.btn-warning:active,
.btn-warning:active:focus {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
}

.btn-success:active,
.btn-success:active:focus {
    background-color: #198754 !important;
    border-color: #198754 !important;
}

/* ========================================
   Forms
   ======================================== */
.form-control, 
.form-select {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.form-control:focus, 
.form-select:focus {
    background-color: var(--bg-primary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 149, 0, 0.25);
}

/* Placeholders */
.form-control::placeholder,
.form-select::placeholder,
.credential-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] .form-select::placeholder,
[data-theme="dark"] .credential-input::placeholder {
    opacity: 0.8;
}

/* ========================================
   Modals - Fixed for proper dark mode
   ======================================== */
[data-theme="dark"] .modal-content {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

[data-theme="dark"] .modal-header {
    border-bottom-color: #333;
}

[data-theme="dark"] .modal-footer {
    border-top-color: #333;
}

[data-theme="dark"] .btn-close {
    filter: invert(1);
}

/* ========================================
   Tables
   ======================================== */
.table {
    color: var(--text-primary);
}

.table thead th {
    background-color: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
}

.table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background-color: var(--bg-secondary);
}

/* ========================================
   Hero & Layout Sections
   ======================================== */
.hero-section {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
    overflow: visible;
}

/* Account for navbar height */
body {
    padding-top: 120px;
    overflow-x: hidden;
}

/* Hero Typography */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--accent-primary);
    line-height: 1.3;
}

.hero-text {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--bs-text-secondary);
    line-height: 1.8;
}

/* Hero Features */
.hero-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 500;
}

.feature-item svg {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.glass-card {
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    z-index: 1;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(20deg);
    }
    50% {
        transform: translateY(-30px) rotate(25deg);
    }
}

/* ========================================
   Credential Display
   ======================================== */
.credential-display {
    background: var(--bg-secondary);
    border: 2px dashed var(--accent-primary);
    border-radius: 0.75rem;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
    word-break: break-all;
    color: var(--text-primary);
    text-align: center;
}

.credential-input {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* ========================================
   Special Elements
   ======================================== */
.price-tag {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: var(--accent-text);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-block;
}

.spec-selector {
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.spec-selector:hover {
    transform: scale(1.05);
    border-color: var(--accent-primary);
}

.btn-check:checked + .spec-selector {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--accent-text);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

/* ========================================
   Badges & Alerts
   ======================================== */
.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

.badge.bg-warning {
    background-color: var(--warning) !important;
    color: #000;
}

.badge.bg-success {
    background-color: var(--success) !important;
}

.badge.bg-danger {
    background-color: var(--danger) !important;
}

.alert {
    border-radius: 0.75rem;
    border: none;
}

.alert-info {
    background-color: var(--accent-light);
    color: var(--text-primary)
}

/* ========================================
   Footer & Admin
   ======================================== */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 5rem;
}

.admin-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

/* ========================================
   Animations
   ======================================== */
#loginForm, #registerForm, #credentialDisplay {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   Scrollbar Styling
   ======================================== */
* {
    scrollbar-width: thin;
    scrollbar-color: #ffa200 transparent;
}

*::-webkit-scrollbar {
    width: 10px;
}

*::-webkit-scrollbar-track {
    border-radius: 5px;
    background-color: transparent;
}

*::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: #ffa200;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #ff8000;
}

/* ========================================
   Map Filter for Dark Mode
   ======================================== */
/* Dark mode is now handled by changing tile layers in JavaScript */

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
    }
    
    .hero-section .col-lg-6:last-child {
        position: static;
        transform: none;
        width: auto;
        margin-top: 2rem;
    }
    
    .glass-card {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .auth-container {
        margin: 2rem auto;
    }
    
    .navbar-nav {
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }
}

/* Disabled primary button - keep orange theme */
.btn-primary:disabled,
.btn-primary.disabled {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    opacity: 0.65;
}

/* Prevent Bootstrap's hover effect on disabled buttons */
.btn-primary:disabled:hover,
.btn-primary.disabled:hover {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.accordion-button:not(.collapsed) {
    background-color: var(--accent-light);
    color: var(--accent-primary);
    box-shadow: none;
}

.accordion-button {
    background-color: var(--bg-secondary);
}

/* ========================================
   Accordion - Dark Mode Support
   ======================================== */
[data-theme="dark"] .accordion-item {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .accordion-button {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
  background-color: var(--accent-light);
  color: var(--accent-primary);
  box-shadow: none;
}

[data-theme="dark"] .accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

[data-theme="dark"] .accordion-button::after {
    filter: invert(1);
}

[data-theme="dark"] .accordion-body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* ========================================
   Tables - Better Dark Mode
   ======================================== */
[data-theme="dark"] .table {
    --bs-table-bg: var(--bg-primary);
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: var(--border-color);
    --bs-table-hover-bg: var(--bg-secondary);
    --bs-table-hover-color: var(--text-primary);
}

[data-theme="dark"] .table > :not(caption) > * > * {
    background-color: var(--bs-table-bg);
    color: var(--bs-table-color);
    border-bottom-color: var(--bs-table-border-color);
}

[data-theme="dark"] .table-hover > tbody > tr:hover > * {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Pricing Table Styles */
.pricing-wrapper {
    max-width: calc(205px * 6); /* compare column (1) + 5 plans = 1200px */
    margin: 0 auto;
    padding: 0 1rem;
}

.pricing-table-container {
    position: relative;
    display: flex;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Compare Column - Fixed */
.compare-column {
    flex-shrink: 0;
    width: 200px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    position: sticky;
    left: 0;
    z-index: 10;
}

.compare-header {
    padding: 1.5rem 1rem;
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--border-color);
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.legend-text {
    margin-top: 0.5rem;
    line-height: 1.4;
}

.legend-text small {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 400;
}

/* Dark mode support */
[data-theme="dark"] .legend-text small {
    color: var(--text-secondary);
    opacity: 0.9;
}

.compare-header h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.feature-row {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    height: 55px;
    display: flex;
    align-items: center;
}

/* Scrollable Plans Container */
.plans-scroll-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    position: relative;
    scroll-snap-type: x mandatory;
}

/* Hide scrollbar but keep functionality */
.plans-scroll-container::-webkit-scrollbar {
    height: 0;
}

.plans-scroll-wrapper {
    display: flex;
    width: fit-content;
}

/* Individual Plan */
.pricing-plan {
    flex-shrink: 0;
    width: 200px;
    border-right: 1px solid var(--border-color);
    scroll-snap-align: start;
}

.pricing-plan:last-child {
    border-right: none;
}

.plan-header {
    padding: 1.5rem 1rem;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    height: 180px;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plan-header h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price .currency {
    font-size: 1.1rem;
}

.price .period {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.spec-row {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-primary);
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.badge-unlimited {
    background: var(--accent-light);
    color: var(--accent-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
}

/* Scroll Buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
    z-index: 5;
}

.scroll-btn:hover {
    opacity: 1;
}

.scroll-left {
    left: 210px;
}

.scroll-right {
    right: 10px;
}

.scroll-btn.disabled {
    opacity: 0.3;
    cursor: default;
}

/* Dark mode */
[data-theme="dark"] .pricing-table-container {
    background: var(--bg-primary);
}

[data-theme="dark"] .compare-column {
    background: var(--bg-secondary);
}

[data-theme="dark"] .compare-header {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .plan-header {
    background: var(--bg-primary);
}

/* Mobile */
@media (max-width: 768px) {
    .compare-column {
        width: 120px;
    }
    
    .pricing-plan {
        width: 160px;
    }
    
    .scroll-left {
        left: 130px;
    }
    
    .plan-header h4 {
        font-size: 0.95rem;
    }
    
    .price {
        font-size: 1.2rem;
    }
    
    .spec-row, .feature-row {
        font-size: 0.75rem;
        padding: 0.75rem 0.5rem;
    }
}
:root {
  --plan-width: 200px;
  --compare-width: 200px;
}

.plans-scroll-wrapper,
.pricing-plan,
.spec-row,
.plan-header {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    cursor: grab;
}

.plans-scroll-wrapper:active {
    cursor: grabbing;
}

/* ========================================
   Footer Styles
   ======================================== */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
}

.footer h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer .accent {
    color: var(--accent-primary);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--accent-primary);
    transform: translateX(3px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
}

.social-link i {
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

/* ========================================
   Operating Systems Cards
   ======================================== */
.os-section-wrapper {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
}

.os-card {
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
    height: 100%;
}

.os-icon {
    font-size: 3.5rem;
    color: var(--accent-primary);
}

.os-card h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.os-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Dark mode specific adjustments */
[data-theme="dark"] .os-section-wrapper {
    background: var(--bg-primary);
}

/* ========================================
   Stock Availability Badges
   ======================================== */
.stock-badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.stock-available {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.stock-delayed {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.stock-unknown {
    background: #e2e3e5;
    color: #6c757d;
    border: 1px solid #d6d8db;
}

/* Dark mode stock badges */
[data-theme="dark"] .stock-available {
    background: #1e4620;
    color: #7dce82;
    border: 1px solid #2d5f2e;
}

[data-theme="dark"] .stock-delayed {
    background: #4a3a10;
    color: #ffc107;
    border: 1px solid #5c4a1a;
}

[data-theme="dark"] .stock-unknown {
    background: #3a3a3a;
    color: #b0b0b0;
    border: 1px solid #4a4a4a;
}

/* Fix Bootstrap's .text-primary to use accent color */
.text-primary {
    color: #ff9500 !important;
}

.bg-primary {
    background-color: #ff9500 !important;
}

/* ========================================
   Dark Mode Text Color Fixes
   ======================================== */
[data-theme="dark"] label,
[data-theme="dark"] .form-label,
[data-theme="dark"] .fw-bold,
[data-theme="dark"] span,
[data-theme="dark"] small,
[data-theme="dark"] li,
[data-theme="dark"] p,
[data-theme="dark"] .card-title {
    color: var(--text-primary) !important;
}

/* Ensure headings stay visible */
[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;
}

/* Keep specific color classes */
[data-theme="dark"] .text-success {
    color: #7dce82 !important;
}

[data-theme="dark"] .text-danger {
    color: #ff6b6b !important;
}

[data-theme="dark"] .text-warning {
    color: #ffc107 !important;
}

[data-theme="dark"] .text-info {
    color: #17a2b8 !important;
}

[data-theme="dark"] .text-secondary {
    color: var(--text-secondary) !important;
}
/* Notification Badge */
.notification-badge {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
    min-width: 18px;
    text-align: center;
    vertical-align: 1px;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: 1px solid var(--border-color);
}

.dropdown-item:active {
    background-color: var(--accent-primary);
    color: white;
}

/* Dropdown Menu Dark Mode */
[data-theme="dark"] .dropdown-menu {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:active {
    background-color: var(--accent-primary);
    color: white;
}

[data-theme="dark"] .dropdown-divider {
    border-color: var(--border-color);
}

.ticket-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid;
}
.ticket-message.user-message {
    background: #f8f9fa;
    border-left-color: #ffa200;
}
.ticket-message.admin-message {
    background: var(--accent-light);
    border-left-color: #ffa200;
}
.ticket-message.internal-message {
    background: #fff3cd;
    border-left-color: #ffa200;
}
.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9em;
}
.message-body {
    word-wrap: break-word;
}

/* Dark mode styles */
[data-theme="dark"] .ticket-message.user-message {
    background: var(--bg-secondary);
    border-left-color: #ffa200;
    color: #e0e0e0;
}
[data-theme="dark"] .ticket-message.admin-message {
    background: var(--accent-light);
    border-left-color: #ffa200;
    color: #e0e0e0;
}
[data-theme="dark"] .ticket-message.internal-message {
    background: #2f2a1a;
    border-left-color: #ffa200;
    color: #e0e0e0;
}

.plan-selector {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.plan-selector:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}
.plan-selector.selected {
    border-color: var(--accent-primary);
    background: var(--accent-light);
}
.os-selector {
    cursor: pointer;
    transition: all 0.3s ease;
}
.os-selector input[type="radio"]:checked + .card {
    border-color: var(--accent-primary);
    background: var(--accent-light);
}
.sticky-sidebar {
    position: sticky;
    top: 100px;
}

.nav-tabs {
    border-bottom: 2px solid var(--border-color);
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}
.nav-tabs .nav-item {
    flex-shrink: 0;
}

/* Deploy page tabs styling */
#deployTypeTabs .nav-link {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

#deployTypeTabs .nav-link:hover {
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}

#deployTypeTabs .nav-link.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: transparent;
}

/* Proxy sub-tabs (Datacenter/Residential) styling */
#proxyTypeTabs .nav-link {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

#proxyTypeTabs .nav-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

#proxyTypeTabs .nav-link.active {
    background: var(--accent-light);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: var(--bg-secondary);
}

.notification-item.unread {
    background-color: var(--accent-light);
    border-left: 3px solid var(--accent-primary);
}

.notification-item .notification-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notification-type-ticket_reply .notification-icon {
    background-color: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.notification-type-renewal_warning .notification-icon {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.notification-type-server_expired .notification-icon,
.notification-type-renewal_failed .notification-icon {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.notification-type-inactive_account_warning .notification-icon,
.notification-type-custom .notification-icon {
    background-color: rgba(255, 149, 0, 0.1);
    color: var(--accent-primary);
}

.notification-time {
    font-size: 12px;
    color: var(--text-muted);
}

.form-select:disabled {
  background-color: var(--bg-secondary);
}

[data-theme="dark"] .notification-item.unread {
    background-color: rgba(255, 149, 0, 0.15);
}

[data-theme="dark"] .text-muted {
  color: var(--text-secondary) !important;
}

svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
  overflow: visible;
}

[data-theme="dark"] .list-group {
 --bs-list-group-bg: var(--bg-primary);
 --bs-list-group-action-hover-bg: var(--bg-secondary);
 --bs-list-group-action-active-bg: var(--bg-tertiary);
 --bs-list-group-border-color: var(--border-color);
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.nav-tabs .nav-link:hover {
    border: 1px solid var(--border-color);
}

.input-group-text {
    background-color: var(--bg-secondary) !important;
    border: var(--bs-border-width) solid var(--border-color);
}

#locationTabs {
    border-bottom: none;
}

@media (min-width: 992px) {
  .pe-lg-5 {
    padding-right: 0 !important;
  }
}