/* ===== GLOBAL LAYOUT RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}


/* =========================
   HEADER LAYOUT
========================= */

.main-header {
    width: 100%;
    padding: 6px 0;
    position: fixed;
    top: 0;
    z-index: 2000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo {
    font-size: 1.3rem; /* साइज थोड़ा और कम किया */
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
}
/* Divider line */
.header-divider {
    width: 1px;
    height: 15px;
}

.header-tagline {
    white-space: nowrap;
}

.bell-header-right {
    position: relative;
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    margin-left: 5px;
}

.bell-dot {
    position: absolute;
    top: 2px;
    right: 2px;
}

/* ===== ADS LAYOUT ===== */
#top-ad-banner,
#footer-ad-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-border-box {
    width: 100%;
    max-width: 728px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-btn {
    width: 100%;
    max-width: 420px;
    height: 70px;
    margin: 12px auto 0px auto;
    border-radius:18px;
    cursor:pointer;
    display:block;
}

/* ===== PREVIEW SECTION LAYOUT ===== */
#viewBanner {
    width: 100%;
    max-width: 450px;
    margin: 10px auto;
    padding: 0 10px;
}

#bannerContainer {
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    position: relative;
}

.media-wrapper,
.media-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== EDITOR SECTION LAYOUT ===== */
#createBanner {
    padding: 30px 20px;
    margin-top: 20px;
}

/* ===== TEMPLATE SECTION LAYOUT ===== */

#templateSection {
    padding: 5px 0 20px;
    margin-top: 10px;
}
/* Heading aur Button ka container */

/* ===== TEMPLATE HEADER & SEARCH STRUCTURE ===== */

.template-header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    margin-bottom: 15px;
    width: 100%;
    min-height: 44px;
    position: relative; 
}

#templateSection h2 {
    margin-bottom:10px;
}


/* ===== SEARCH POSITION & SIZE ===== */

.search-box {
    width: 100%;
    max-width: 320px;
    height: 40px;

    margin-left: 10px;
    margin-right: auto;
    margin-top: 10px;
}

/* TEMPLATE LIST STRUCTURE */
.template-selector {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.template-item {
    flex: 0 0 100px;

}

.template-item img {
    width: 100%;
    height: 140px;
}

/* =========================================
   SEARCH ACTIVE STATE (STATE 2) - SIZE & LOCATION
   ========================================= */

/* =========================================
   STATE 2: SEARCH TAB LOCATION & SIZE (HEADER)
   ========================================= */

/* =================================================
   SEARCH TAB: STATE 2 (CONTROLS)
   ================================================= */



/* Mobile Screen Par Controls (Same logic) */
@media screen and (max-width: 480px) {
    .search-wrapper.active {
       
    }
}


/* Mobile par thoda adjust karne ke liye */
@media screen and (max-width: 480px) {
    .template-header-box {
        padding: 0 12px;
    }
}

/* ===== FORM LAYOUT ===== */
.card {
    padding: 20px;
    margin-bottom: 20px;
}

.preview-container {
    width: 210px;
    height: 140px;
    margin: 0 auto 15px auto;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    position: relative;
}

input[type="text"] {
    width: 100%;
}

/* ===== REMINDER BUTTON LAYOUT ONLY ===== */

.ui-reminder-btn {
    width: 100%;
    max-width: 420px;

    height: 70px;

    display: block;
    margin: 12px auto 0 auto; /* center + spacing */

    border: none;
    border-radius: 18px;

    cursor: pointer;
}

/* ===== BUTTON BASE LAYOUT ===== */
.btn {
    width: 100%;
}

.whatsapp {
    margin-top: 10px;
    margin-bottom: 30px;
}

.hidden {
    display: none;
}

/* ===== PUSH PROMPT LAYOUT ===== */
.push-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    width: 90%;
    max-width: 380px;
}

.prompt-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile layout */
@media screen and (max-width: 480px) {
    .header-inner { gap: 8px; }
}
