/* create-auction.css */
.create-auction-scope {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: #333;
}

/* R1 (navbar fixed) + R3 (no scrollbar shift):
   the page scrolls on the viewport (html) so the sticky navbar stays put,
   and a stable gutter stops fields from jumping when the scrollbar appears. */
html {
    scrollbar-gutter: stable;
}

/* Base Body styling for this page to match the watermark look.
   overflow-x: clip (NOT hidden) — clip prevents horizontal scroll WITHOUT
   turning <body> into a scroll container, which would break the sticky navbar. */
body {
    background-color: #f4f7fc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    overflow-x: clip;
    background-image: none !important;
}

/* R5 (own code): this page owns its layout instead of borrowing
   .container / .dashboard-scope / .main-content from dashboard.css. */
.create-auction-page {
    display: flex;
    max-width: 1800px;
    margin: 40px auto;
    padding: 0 40px;
    gap: 50px;
    font-family: 'Poppins', sans-serif;
}

.create-auction-main {
    flex-grow: 1;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: url("../../img/i1.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.15; /* Subtly dim in light mode so it doesn't overpower */
}

.hero-section {
    padding: 10px 0 40px 0;
    text-align: left;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #111;
    margin: 0 0 16px 0;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 400px;
    line-height: 1.5;
    margin: 0;
}

.text-primary {
    color: #007aff;
}

/* CSS Layout */
.form-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding-bottom: 60px;
}

.setup-card {
    background: #ffffff85;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
    width: 100%;
    max-width: 650px;
}

@media (max-width: 768px) {
    .setup-card {
        padding: 24px 20px;
        margin: 0;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 32px;
        text-align: center;
    }
    .hero-subtitle {
        text-align: center;
        margin: 0 auto;
    }
    
    .form-steps-container {
        padding-bottom: 20px !important;
    
}}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 40px 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.setup-card .form-section-title:first-child {
    margin-top: 0;
}

.form-section-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    letter-spacing: 0.5px;
}

.header-icon {
    background: #eaf4fc;
    border-radius: 50%;
    padding: 8px;
    width: 36px;
    height: 36px;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    border: 1.5px solid #f0f0f0;
    border-radius: 12px;
    /* Changed from pill to rounded rectangle for a better form look */
    font-size: 15px;
    transition: all 0.2s;
    font-family: inherit;
    background-color: #ffffff;
    color: #333;
}

.form-control:focus {
    outline: none;
    border-color: #007aff;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-row {
    display: flex;
    gap: 24px;
}

.form-col {
    flex: 1;
}

/* Toggle Buttons (Points/Rupees) */
.toggle-btn {
    padding: 0 16px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.toggle-btn:first-child {
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.toggle-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.toggle-btn.active {
    background: #007aff;
    color: white;
    border-color: #007aff;
}

/* Submit Button Hover */
.submit-btn-container {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
}

.btn-primary {
    background: #007aff;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 40px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.3);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #005bb5 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 122, 255, 0.4);
}

/* Custom Dropdown UI */
.custom-dropdown {
    position: relative;
    width: 100%;
    user-select: none;
}

.dropdown-selected {
    width: 100%;
    padding: 14px 20px;
    border: 1.5px solid #f0f0f0;
    border-radius: 12px;
    font-size: 15px;
    background-color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    color: #555;
}

.custom-dropdown.active .dropdown-selected {
    border-color: #007aff;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.custom-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
    overflow: hidden;
}

.custom-dropdown.active .dropdown-options {
    display: block;
}

.dropdown-option {
    padding: 14px 20px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-option:hover,
.dropdown-option.selected {
    background-color: #f4f7fc;
    color: #007aff;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
    .form-cards-grid {
        grid-template-columns: 1fr;
    }

    /* R5: own page layout stacks the same way .container did */
    .create-auction-page {
        flex-direction: column;
    }
}

/* R6 (mobile): tighten page gutters + scale the hero so it fits phones */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .create-auction-page {
        padding: 0 16px;
        margin: 20px auto;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-section {
        padding: 6px 0 24px 0;
    }
}

/* =========================================
   DARK THEME OVERRIDES
   ========================================= */
[data-theme="dark"] body {
    background-color: var(--color-bg);
    background-image: none !important;
}

[data-theme="dark"] body::before {
    /* Magic filter logic from organizer dashboard for the perfect glowing neon look */
    filter: invert(1) hue-rotate(185deg) brightness(0.92) contrast(1.05);
    opacity: 0.35; /* Perfect opacity to blend with the #000000 base background */
}

[data-theme="dark"] .hero-title,
[data-theme="dark"] .form-section-title h3,
[data-theme="dark"] .logo-label {
    color: var(--color-text);
}

[data-theme="dark"] .hero-subtitle {
    color: var(--color-text-muted);
}

[data-theme="dark"] .setup-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .form-section-title {
    border-bottom: 1px solid var(--color-border-strong);
}

[data-theme="dark"] .header-icon {
    background: var(--color-surface-2);
    color: var(--color-primary);
}

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

[data-theme="dark"] .form-control,
[data-theme="dark"] .dropdown-selected {
    background-color: var(--color-surface-2);
    border: 1.5px solid var(--color-border);
    color: var(--color-text);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .custom-dropdown.active .dropdown-selected {
    border-color: var(--color-primary);
    background-color: var(--color-surface);
}

[data-theme="dark"] .dropdown-options {
    background-color: var(--color-surface-2);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

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

[data-theme="dark"] .dropdown-option:hover,
[data-theme="dark"] .dropdown-option.selected {
    background-color: var(--color-surface-hover);
    color: var(--color-primary);
}

[data-theme="dark"] .toggle-btn {
    background: var(--color-surface-2);
    border-color: var(--color-border);
    color: var(--color-text-muted);
}

[data-theme="dark"] .submit-btn-container {
    border-top: 1px solid var(--color-border-strong);
}