/* =============================================
   ABABIL360 - ELITE CREATE BOOK CSS (FINAL MASTERPIECE)
=============================================
*/

/* --- Core Styles & Fonts --- */
body.create-bg {
    background-color: #f1f5f9 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: #334155 !important;
}

/* --- THE ELITE SOLID NAVBAR --- */
.navbar-create-elite {
    background-color: #0c9bf3 !important; /* Force Solid Blue */
    height: 75px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    position: sticky !important;
    top: 0;
    z-index: 1020;
    width: 100% !important;
    border-bottom: none !important;
}

.navbar-create-elite h5 {
    color: #ffffff !important;
    opacity: 1 !important;
    margin: 0 !important;
}

.btn-elite-nav {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-radius: 50px !important;
    padding: 8px 20px !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    cursor: pointer !important;
}

.btn-elite-nav:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px) !important;
}

/* --- Icons Box --- */
.icon-box-primary {
    width: 40px;
    height: 40px;
    background-color: #0c9bf3 !important;
    border-radius: 10px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(12, 155, 243, 0.2) !important;
}

/* --- Container Box & Alerts --- */
.container-box {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03) !important;
}

.elite-alert {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
}

/* --- Core Elite Input --- */
.elite-input {
    background-color: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0f172a !important; 
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.elite-input:focus {
    border-color: #0c9bf3 !important;
    box-shadow: 0 0 0 4px rgba(12, 155, 243, 0.1) !important;
    outline: none !important;
}

.elite-input::placeholder {
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

/* --- CUSTOM DROPDOWNS --- */
.custom-dropdown-container {
    position: relative;
    width: 100%;
}

.custom-dropdown-trigger.elite-input {
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 52px !important;
}

.custom-dropdown-trigger.elite-input:hover, 
.custom-dropdown-container.open .custom-dropdown-trigger.elite-input {
    border-color: #0c9bf3 !important;
    background-color: #f0f9ff !important;
    color: #0284c7 !important;
}

.custom-dropdown-trigger .fa-chevron-down {
    transition: transform 0.3s ease;
    color: #94a3b8;
}

.custom-dropdown-container.open .custom-dropdown-trigger .fa-chevron-down {
    transform: rotate(180deg);
    color: #0c9bf3;
}

/* Dropdown Menu */
.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    padding: 8px;
    border: 1px solid #e2e8f0;
}

.custom-dropdown-container.open .custom-dropdown-menu {
    display: block;
}

.custom-dropdown-options ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 220px;
    overflow-y: auto;
}

.custom-dropdown-options ul::-webkit-scrollbar { width: 4px; }
.custom-dropdown-options ul::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.custom-dropdown-options li {
    padding: 10px 15px;
    cursor: pointer;
    color: #334155;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 2px;
}

.custom-dropdown-options li:hover,
.custom-dropdown-options li.selected {
    background-color: #f0f9ff;
    color: #0c9bf3;
}

/* Add New & Stepper */
.custom-dropdown-add-new {
    display: flex;
    padding: 10px 5px 5px;
    border-top: 1px solid #f1f5f9;
}

.custom-dropdown-add-new input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    outline: none;
}

.font-size-add { display: flex; gap: 5px; }
.stepper-btn {
    background: #f1f5f9; border: none; font-weight: bold;
    width: 32px; border-radius: 6px; cursor: pointer;
}
.add-font-btn { background: #0c9bf3; color: white; border: none; border-radius: 6px; padding: 0 12px; }

/* --- Checkbox Buttons Remastered --- */
.custom-checkbox-button {
    background-color: #ffffff !important;
    color: #334155 !important;
    border: 2px solid #e2e8f0 !important;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 52px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.custom-checkbox-button.checked {
    border-color: #0c9bf3 !important;
    color: #0c9bf3 !important;
    background-color: #f0f9ff !important;
}

.checkbox-visual {
    width: 22px !important; 
    height: 22px !important;
    background-color: #f1f5f9 !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 6px !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
}

.custom-checkbox-button.checked .checkbox-visual {
    background-color: #0c9bf3 !important;
    border-color: #0c9bf3 !important;
}

.checkbox-visual .fa-check { color: white !important; font-size: 12px !important; opacity: 0; }
.custom-checkbox-button.checked .checkbox-visual .fa-check { opacity: 1; }

/* --- THE ELITE BOTTOM GENERATE BUTTON (SMART & MATCHING SITE THEME) --- */
.btn-elite-final-generate {
    background: linear-gradient(135deg, #0c9bf3 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 16px 32px !important; 
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    max-width: 400px !important;
    box-shadow: 0 8px 25px rgba(12, 155, 243, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    margin: 0 auto !important;
    white-space: nowrap !important;
}

.btn-elite-final-generate i {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    margin-left: 12px !important;
}

.btn-elite-final-generate:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(12, 155, 243, 0.5) !important;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
}

/* --- Elite Mode Toggle (Like Generate Button) --- */
.mode-toggle-container {
    background-color: #ffffff !important;
    padding: 6px !important;
    border-radius: 50px !important;
    display: flex !important;
    gap: 4px !important;
    max-width: 450px !important;
}

.btn-mode {
    flex: 1 !important;
    border-radius: 50px !important;
    padding: 12px 20px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #64748b !important;
    background: transparent !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.btn-mode:hover {
    color: #0c9bf3 !important;
    background: rgba(12, 155, 243, 0.05) !important;
}

.btn-mode.active {
    background: linear-gradient(135deg, #0c9bf3 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 15px rgba(12, 155, 243, 0.25) !important;
}

/* --- Mobile Fixes (Navbar & Alignment) --- */
@media (max-width: 768px) {
    .navbar-create-elite {
        height: 60px !important;
    }
    .btn-elite-nav {
        padding: 6px 14px !important;
    }
    .btn-mode {
        padding: 10px 8px !important;
        font-size: 13px !important;
    }
    .btn-elite-final-generate {
        font-size: 1rem !important;
        padding: 14px 20px !important;
        letter-spacing: 0.5px !important;
        max-width: 100% !important;
    }
}
/* --- Ultra Responsive Typography & Icons --- */
@media (max-width: 480px) {
    .elite-section-title {
        font-size: 1.15rem !important; /* Force single line fitting */
        letter-spacing: -0.5px !important;
        white-space: nowrap !important; /* NO breaking into 2 lines */
    }
    
    .icon-box-primary {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
    
    .icon-box-primary i {
        font-size: 0.9rem !important;
    }
}
/* --- Ultra Responsive Typography & Reordering Fixes --- */
@media (max-width: 768px) {
    /* BOSS FIX: Remove all top spacing on mobile for flush start */
    .container.mt-4.create-main-container {
        margin-top: 2 !important;
        padding-top: 0 !important;
    }
    
    form {
        margin-top: 0 !important;
    }

    .container-box.p-4 {
        padding-top: 0px !important; /* Small padding from very top edge */
    }

    /* Keep toggle buttons prominent */
    .mode-toggle-container {
        margin-bottom: 2px !important;
    }
}

@media (max-width: 480px) {
    .elite-section-title {
        font-size: 1.15rem !important; 
        letter-spacing: -0.5px !important;
        white-space: nowrap !important;
    }
    
    .icon-box-primary {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
    
    .icon-box-primary i {
        font-size: 0.9rem !important;
    }
}