/**
 * Elemart Seller Hub Stylesheet
 * Contains styles for Seller Registration, Onboarding Hero, Dashboard, Profile Tabs, and Application Flow.
 */

/* ==========================================================================
   1. Global Seller Typography & Layout
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Bai+Jamjuree:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&display=swap");

.seller-signup-section,
.seller-success-page,
.seller-dashboard-wrapper,
.seller-profile-wrapper,
.seller-dashboard-wrapper h1,
.seller-dashboard-wrapper h2,
.seller-dashboard-wrapper h3,
.seller-dashboard-wrapper h4,
.seller-dashboard-wrapper h5,
.seller-dashboard-wrapper h6,
.seller-profile-wrapper h1,
.seller-profile-wrapper h2,
.seller-profile-wrapper h3,
.seller-profile-wrapper h4,
.seller-profile-wrapper h5,
.seller-profile-wrapper h6,
.seller-dashboard-wrapper p,
.seller-profile-wrapper p,
.seller-dashboard-wrapper span,
.seller-profile-wrapper span,
.seller-dashboard-wrapper button,
.seller-profile-wrapper button,
.seller-dashboard-wrapper input,
.seller-profile-wrapper input,
.seller-dashboard-wrapper a,
.seller-profile-wrapper a {
    font-family: "Bai Jamjuree", sans-serif !important;
}

/* ==========================================================================
   2. Seller Registration Page (/sell, /seller/register)
   ========================================================================== */
.seller-signup-section {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    min-height: 85vh;
}

.seller-hub-badge {
    background: #e0f2fe !important;
    color: #0281E5 !important;
    border: 1px solid #bae6fd !important;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.2px;
}

.seller-hero-heading {
    font-size: 2.3rem;
    line-height: 1.25;
    font-weight: 700;
    color: #1e293b;
}

.seller-hero-desc {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

.seller-feature-icon-blue {
    width: 38px;
    height: 38px;
    background: #e0f2fe;
    color: #0281E5;
    font-size: 16px;
}

.seller-feature-icon-green {
    width: 38px;
    height: 38px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 16px;
}

.seller-feature-icon-amber {
    width: 38px;
    height: 38px;
    background: #fef3c7;
    color: #d97706;
    font-size: 16px;
}

.seller-support-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.seller-register-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

/* PhoneInput Stacking Context & Widget Styling */
.seller-mobile-row {
    position: relative;
    z-index: 1050;
}

.seller-register-card .field-sellerregisterform-contact_no {
    position: relative;
    z-index: 1060;
}

.seller-register-card .field-sellerregisterform-contact_no .iti {
    position: relative;
    z-index: 1070;
    width: 100%;
    display: block;
}

.seller-register-card .field-sellerregisterform-contact_no .iti input {
    width: 100%;
    height: 48px;
    border-radius: 8px !important;
    border: 1px solid #ced4da;
    padding-left: 52px !important;
    font-size: 0.95rem;
    color: #1e293b;
    background-color: #ffffff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.seller-register-card .field-sellerregisterform-contact_no .iti input:focus {
    border-color: #0281E5;
    box-shadow: 0 0 0 0.2rem rgba(2, 129, 229, 0.15);
    outline: 0;
}

.seller-register-card .field-sellerregisterform-contact_no .iti input.is-invalid {
    border-color: #dc3545 !important;
    padding-right: calc(1.5em + 0.75rem) !important;
}

.seller-register-card .field-sellerregisterform-contact_no .iti input.is-valid {
    border-color: #198754 !important;
    padding-right: calc(1.5em + 0.75rem) !important;
}

.seller-register-card .iti__selected-flag {
    padding: 0 8px 0 12px;
    background: transparent;
    border-radius: 8px 0 0 8px;
}

.seller-register-card .iti__selected-flag:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.seller-register-card .iti__arrow {
    border-top-color: #64748b;
}

/* Premium styled country dropdown list */
.seller-register-card .iti__country-list {
    position: absolute;
    z-index: 999999 !important;
    list-style: none;
    text-align: left;
    padding: 6px 0;
    margin: 4px 0 0 0;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    background-color: #ffffff;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    white-space: nowrap;
    max-height: 230px;
    overflow-y: auto;
    width: 100%;
    min-width: 320px;
}

.seller-register-card .iti__country {
    padding: 8px 14px;
    font-size: 13.5px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.seller-register-card .iti__country:hover,
.seller-register-card .iti__country.iti__highlight {
    background-color: #f1f5f9;
    color: #0281E5;
}

.seller-register-card .iti__country-name {
    font-weight: 500;
    margin-right: 4px;
}

.seller-register-card .iti__dial-code {
    color: #64748b;
    font-size: 12.5px;
    margin-left: auto;
}

.seller-register-card .iti__divider {
    padding-bottom: 4px;
    margin-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
}

/* Password Eye Toggle Icon */
.seller-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100 !important;
    cursor: pointer !important;
    color: #64748b;
    font-size: 16px;
    padding: 8px 10px;
    user-select: none;
    pointer-events: auto !important;
    transition: color 0.2s ease;
}

.seller-password-toggle:hover {
    color: #0281E5;
}

.seller-register-card .field-sellerregisterform-password #sellerregisterform-password {
    padding-right: 42px !important;
}

.seller-register-card .field-sellerregisterform-password .form-control.is-invalid,
.seller-register-card .field-sellerregisterform-password .form-control.is-valid {
    background-image: none !important;
}

.seller-register-btn {
    background: #0281E5;
    border-color: #0281E5;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 20px;
    color: #ffffff;
    transition: all 0.2s ease;
}

.seller-register-btn:hover {
    background: #006ec4;
    border-color: #006ec4;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2, 129, 229, 0.3);
}


/* ==========================================================================
   4. Seller Dashboard Header & Gamified Onboarding Hero (/dashboard/seller)
   ========================================================================== */
.seller-header-bar {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
}

.seller-header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0281E5 0%, #0056b3 100%);
    font-size: 20px;
    color: #ffffff;
}

.seller-onboarding-hero {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 45%, #f0fdf4 100%);
    border: 1.5px solid #93c5fd !important;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(2, 129, 229, 0.08);
    position: relative;
    overflow: hidden;
}

.seller-onboarding-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #0281E5 0%, #10b981 100%);
}

.gauge-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(2, 129, 229, 0.22);
}

.gauge-inner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.onboarding-step-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    text-decoration: none !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.onboarding-step-card:hover {
    border-color: #0281E5 !important;
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(2, 129, 229, 0.12) !important;
}

.onboarding-step-card.is-done {
    border-color: #86efac;
    background: #fcfdfc;
}

.onboarding-step-card.is-done:hover {
    border-color: #22c55e !important;
    box-shadow: 0 10px 22px rgba(34, 197, 94, 0.12) !important;
}

.step-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.onboarding-step-card:hover .step-icon-wrapper {
    transform: scale(1.08);
}

.step-action-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(135deg, #0281E5 0%, #0066cc 100%);
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(2, 129, 229, 0.25);
    transition: all 0.2s ease;
}

.onboarding-step-card:hover .step-action-pill {
    box-shadow: 0 4px 12px rgba(2, 129, 229, 0.4);
    transform: translateX(2px);
}

.step-opt-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #f1f5f9;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

.onboarding-step-card:hover .step-opt-pill {
    background: #0281E5;
    color: #ffffff !important;
    border-color: #0281E5;
}

.step-done-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

/* ==========================================================================
   5. Seller Profile & Progressive Tabs (/seller/profile)
   ========================================================================== */
.seller-tabs-header {
    background: #ffffff !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding: 14px 20px !important;
}

.seller-nav-tabs {
    border-bottom: none !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0 !important;
}

.seller-nav-tabs .nav-item {
    margin: 0 !important;
}

.tab-step-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    margin-right: 4px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.seller-nav-tabs .nav-link.active .tab-step-badge {
    background: #ffffff;
    color: #0281E5;
}

.seller-nav-tabs .nav-link {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 10px 18px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    cursor: pointer;
}

.seller-nav-tabs .nav-link:hover {
    color: #0281E5 !important;
    background: #f0f9ff !important;
    border-color: #0281E5 !important;
}

.seller-nav-tabs .nav-link.active {
    color: #ffffff !important;
    background: #0281E5 !important;
    border-color: #0281E5 !important;
    box-shadow: 0 4px 12px rgba(2, 129, 229, 0.25);
}

.seller-nav-tabs .nav-link.active .tab-icon {
    color: #ffffff !important;
}

.seller-nav-tabs .nav-link .tab-icon {
    color: #0281E5;
    font-size: 14px;
    transition: color 0.2s ease;
}

.seller-nav-tabs .nav-link .badge-pending {
    background: #fef3c7 !important;
    color: #92400e !important;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #fde68a !important;
}

.seller-nav-tabs .nav-link.active .badge-pending {
    background: #ffffff !important;
    color: #0281E5 !important;
    border-color: #ffffff !important;
}

.seller-nav-tabs .nav-link .badge-optional {
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e1 !important;
}

.seller-nav-tabs .nav-link.active .badge-optional {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.seller-nav-tabs .nav-link .badge-done {
    background: #dcfce7 !important;
    color: #15803d !important;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #86efac !important;
}

.seller-nav-tabs .nav-link.active .badge-done {
    background: #ffffff !important;
    color: #15803d !important;
    border-color: #ffffff !important;
}

/* ==========================================================================
   6. Grid Image Lightbox Modal Preview
   ========================================================================== */
.grid-img-preview-trigger {
    display: inline-block;
    transition: transform 0.15s ease;
}

.grid-img-preview-trigger:hover {
    transform: scale(1.12);
}

.grid-img-preview-trigger img {
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}

.grid-img-preview-trigger:hover img {
    box-shadow: 0 4px 12px rgba(2, 129, 229, 0.3) !important;
    border-color: #0281E5 !important;
}

.image-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.image-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.image-lightbox-container {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.92);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-lightbox-overlay.active .image-lightbox-container {
    transform: scale(1);
}

.image-lightbox-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    max-width: 520px;
    width: 92vw;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.image-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.image-lightbox-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-lightbox-close {
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.15s ease;
}

.image-lightbox-close:hover {
    color: #0f172a;
}

.image-lightbox-body {
    padding: 24px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.image-lightbox-img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Collapsible Section Header Icons */
.card-header[data-bs-toggle="collapse"] .fa-chevron-down,
.card-header[data-toggle="collapse"] .fa-chevron-down {
    transition: transform 0.25s ease-in-out;
}

.card-header[data-bs-toggle="collapse"].collapsed .fa-chevron-down,
.card-header[data-toggle="collapse"].collapsed .fa-chevron-down,
.card-header[data-bs-toggle="collapse"][aria-expanded="false"] .fa-chevron-down,
.card-header[data-toggle="collapse"][aria-expanded="false"] .fa-chevron-down {
    transform: rotate(-90deg);
}

