/**
 * Sri5.lk - Service Directory Ads Creation Portal External Stylesheet
 * Path: /public_html/services/css/add.css
 * ---------------------------------------------------------------------------------
 * [CRITICAL PRODUCTION STYLE DECK LOG]
 * 1. DESIGN CONTEXT VARIANCE: Full compatibility across responsive night mode (#0f172a)
 * and clean day-mode grid structures natively using var() systems.
 * 2. DROPDOWN ACCESSIBILITY FORCE: Overrides element background states to eliminate
 * gray-on-white or text camouflage bugs across standard mobile viewports.
 * 3. RETENTION DESIGN SYNC: Embeds layout parameters for multi-step progressive steppers,
 * image resizing drag boxes, status notification banners, and modal cards.
 */

:root {
    --primary: #e63946;
    --dark: #0f172a;
    --bg: #0f172a;
    --text: #f1f5f9;
    --border: #1e293b;
    --glass: rgba(15, 23, 42, 0.96);
    --card-bg: rgba(30, 41, 59, 0.5);
    --text-muted: #94a3b8;
    --amber: #f59e0b;
    --blue: #3b82f6;
    --success: #10b981;
}

body.day-mode-override {
    --bg: #f8fafc;
    --text: #1e293b;
    --border: #e2e8f0;
    --glass: rgba(255, 255, 255, 0.98);
    --card-bg: #ffffff;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    margin: 0;
    padding: 125px 0 130px;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ---------------------------------------------------------
   HEADER COMPONENT & FLOATING PILL NAVIGATION HUB
   --------------------------------------------------------- */
header {
    position: fixed;
    top: 15px;
    left: 4%;
    right: 4%;
    height: 65px;
    z-index: 10000;
}

.header-pill {
    background: var(--glass);
    backdrop-filter: blur(15px);
    height: 100%;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-header-back {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: 0.2s;
}

body.day-mode-override .btn-header-back {
    background: #f1f5f9;
    color: var(--dark);
}

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

.logo {
    font-weight: 950;
    font-size: 1.35rem;
    color: var(--primary);
    letter-spacing: -1.2px;
    text-decoration: none;
}

.logo span {
    color: var(--text);
}

body.day-mode-override .logo span {
    color: var(--dark);
}

.header-central-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-anchor-item {
    text-decoration: none;
    font-weight: 800;
    font-size: 0.72rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease-in-out;
}

body.day-mode-override .nav-anchor-item {
    background: rgba(0, 0, 0, 0.04);
    color: var(--dark);
}

.nav-anchor-item:hover {
    color: var(--primary);
    background: rgba(230, 57, 70, 0.08);
    transform: translateY(-1px);
}

.header-actions-container {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

#mobileMenuTriggerBtn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease;
    border: none;
    color: var(--text);
}

body.day-mode-override #mobileMenuTriggerBtn {
    background: #f1f5f9;
    color: var(--dark);
}

.drop-hub {
    position: absolute;
    top: 55px;
    right: 0;
    width: 320px;
    background: #1e293b;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
    display: none;
    overflow: hidden;
    z-index: 11000;
}

body.day-mode-override .drop-hub {
    background: #ffffff;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.notif-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

body.day-mode-override .notif-btn {
    background: #f1f5f9;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 950;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f172a;
}

body.day-mode-override .notif-badge {
    border-color: #ffffff;
}

.drop-hub a,
.profile-drop-item {
    padding: 16px 24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    text-decoration: none !important;
    color: #f1f5f9 !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    transition: 0.2s ease !important;
}

body.day-mode-override .drop-hub a,
body.day-mode-override .profile-drop-item {
    color: #1e293b !important;
    border-color: #f1f5f9 !important;
}

.drop-hub a i,
.profile-drop-item i {
    font-size: 1.05rem !important;
    color: #64748b !important;
    width: 22px !important;
    text-align: center !important;
}

.drop-hub a:hover,
.profile-drop-item:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    padding-left: 28px !important;
}

body.day-mode-override .drop-hub a:hover,
body.day-mode-override .profile-drop-item:hover {
    background: #f8fafc !important;
}

.profile-drop-logout {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.02) !important;
}

.profile-drop-logout i {
    color: #ef4444 !important;
}

.coin-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border);
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--text);
    font-weight: 900;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

body.day-mode-override .coin-pill {
    background: #fff9e6;
    border-color: #fde68a;
    color: #b45309;
}

.p-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2.5px solid var(--primary);
    object-fit: cover;
    cursor: pointer;
}

/* ---------------------------------------------------------
   STRUCTURAL CONTAINERS & FORM GRID ARCHITECTURE
   --------------------------------------------------------- */
.container {
    max-width: 550px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.glass-card {
    background: var(--card-bg);
    border-radius: 35px;
    padding: 30px;
    border: 1px solid var(--border);
    margin-bottom: 25px;
    position: relative;
}

.sec-title {
    font-weight: 900;
    margin: 0 0 20px 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    letter-spacing: -0.5px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

label {
    display: block;
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 16px 22px;
    border-radius: 18px;
    border: 2px solid var(--border);
    font-family: inherit;
    font-weight: 700;
    outline: none;
    background: rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: 0.2s;
    color: var(--text);
}

body.day-mode-override .form-control {
    background: #ffffff;
    color: var(--dark);
}

.form-control:focus {
    border-color: var(--primary);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 18px;
    padding-right: 45px;
    cursor: pointer;
}

select.form-control option {
    background-color: #1e293b;
    color: #ffffff;
    padding: 15px;
}

body.day-mode-override select.form-control option {
    background-color: #ffffff;
    color: #0f172a;
}

/* ---------------------------------------------------------
   PROGRESSIVE PROGRESS STEPPER LAYOUT
   --------------------------------------------------------- */
.stepper-hub-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 25px;
    padding: 0 10px;
}

.stepper-line-track {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--border);
    transform: translateY(-50%);
    z-index: 1;
}

.stepper-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease-in-out;
}

.step-bubble-node {
    position: relative;
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step-bubble-node.step-active {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 12px rgba(230, 57, 70, 0.2);
}

.step-bubble-node.step-complete {
    border-color: var(--success);
    background: var(--success);
    color: white;
}

.form-step-section {
    display: none;
}

.form-step-section.active-step-section {
    display: block;
}

.stepper-controls-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 5px;
}

.btn-step-nav {
    width: 100%;
    padding: 18px;
    border-radius: 100px;
    font-weight: 900;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

.btn-step-back {
    background: var(--card-bg);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-step-next {
    background: var(--text);
    color: var(--bg);
}

body.day-mode-override .btn-step-next {
    background: var(--dark);
    color: #ffffff;
}

/* ---------------------------------------------------------
   MEDIA MATRIX UPLOADER TILES
   --------------------------------------------------------- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.up-box {
    position: relative;
    border: 2.2px dashed var(--border);
    height: 110px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
}

.up-box:hover {
    border-color: var(--primary);
}

.up-loader {
    position: absolute;
    inset: 0;
    background: var(--glass);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}

.preview-content {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: none;
}

.spinner-mini {
    width: 25px;
    height: 25px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-del {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--primary);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid white;
    cursor: pointer;
    z-index: 110;
    font-size: 0.7rem;
    font-weight: 900;
}

/* ---------------------------------------------------------
   SYSTEM RUNTIME BANNER NOTIFICATIONS
   --------------------------------------------------------- */
.system-alert-banner {
    position: relative;
    display: none;
    padding: 18px 55px 18px 24px;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    line-height: 1.4;
    z-index: 10500;
}

.alert-left-content {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.alert-left-content i {
    font-size: 1.35rem;
}

.alert-close-cross {
    position: absolute;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
}

.alert-style-info {
    background: #3b82f6 !important;
}

.alert-style-error {
    background: #ef4444 !important;
}

.alert-style-success {
    background: #10b981 !important;
}

/* ---------------------------------------------------------
   SECURITY SHIELD OVERLAYS & TRANSACTION MODALS
   --------------------------------------------------------- */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.85) !important;
    z-index: 200000 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(8px);
}

.modal-card {
    background: #1e293b !important;
    border: 1px solid var(--border);
    width: 90% !important;
    max-width: 440px !important;
    border-radius: 35px !important;
    padding: 40px 30px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3) !important;
    margin: auto !important;
    position: relative !important;
}

body.day-mode-override .modal-card {
    background: white !important;
}

.close-lb {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.btn-submit {
    width: 100%;
    padding: 19px 24px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 100px;
    font-weight: 900;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
}

.btn-submit:hover {
    background: #d62839;
    transform: translateY(-1px);
}

/* ---------------------------------------------------------
   FOOTER BAR SHORT NAVIGATION PILOTS
   --------------------------------------------------------- */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85px;
    background: #0f172a;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 10000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    padding-bottom: 10px;
}

body.day-mode-override .app-footer {
    background: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.02);
}

.nav-tab {
    text-decoration: none;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.nav-tab.active {
    color: var(--primary);
}

.theme-toggle {
    position: fixed;
    bottom: 100px;
    right: 25px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    border: none;
}

/* ---------------------------------------------------------
   RESPONSIVE RETINA MEDIA CONTROLS OVERRIDES
   --------------------------------------------------------- */
@media (max-width: 900px) {
    body {
        padding: 110px 0 95px;
    }

    .header-central-nav {
        display: none !important;
    }

    #mobileMenuTriggerBtn {
        display: inline-flex !important;
    }

    .glass-card {
        padding: 20px;
        border-radius: 25px;
    }

    .stepper-controls-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}


/* ---------------------------------------------------------
   FOOTER BAR SHORT NAVIGATION PILOTS
   --------------------------------------------------------- */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85px;
    background: #0f172a;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 10000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    padding-bottom: 10px;
}

body.day-mode-override .app-footer {
    background: white;
    border-color: var(--border);
}

.nav-tab {
    text-decoration: none !important;
    /* Forces removal of text lines */
    color: #94a3b8 !important;
    /* Suppresses purple link text leak */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.nav-tab.active {
    color: var(--primary) !important;
    /* Highlights active route selection icon */
}