/* ══════════════════════════════════════════════════════════════════════════
   IT Bulks UI Kit — Global Component Styles
   Include this file in every page: <link rel="stylesheet" href="ui-kit.css">
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Premium Status Modal — Backdrop & Box Animations ─────────────────────── */

@keyframes modalFadeIn {
    from { opacity: 0; backdrop-filter: blur(0px); }
    to   { opacity: 1; backdrop-filter: blur(6px); }
}

@keyframes modalScaleUp {
    from { opacity: 0; transform: scale(0.88) translateY(16px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

#statusModal {
    animation: modalFadeIn 0.25s ease forwards;
}

#statusModal > div {
    animation: modalScaleUp 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ══════════════════════════════════════════════════════════════════════════
   Login Page Styles — Micro-Phase 4 (migrated from login.html <style> block)
   ══════════════════════════════════════════════════════════════════════════ */

body { font-family: 'Inter', sans-serif; background-color: #f1f5f9; }
.text-itbulks { color: #FF6600 !important; }
.bg-itbulks { background-color: #FF6600 !important; }

/* ── Global Focus Ring ── */
input:not([type="checkbox"]):focus {
    outline: none !important;
    border-color: #FF6600 !important;
    box-shadow: 0 0 0 3px rgba(255,102,0,0.12) !important;
    background-color: #ffffff !important;
}

/* ── Remember Me Checkbox Accent ── */
input[type="checkbox"] { accent-color: #FF6600; }

/* ── Submit Button ── */
#btnLogin { transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
#btnLogin:not(:disabled):hover { transform: translateY(-2px); }
#btnLogin:disabled { opacity: 0.75; cursor: not-allowed; transform: none !important; }

/* ── Premium Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 6px; }


/* ════ REGISTER PAGE & GLOBAL UI KIT STYLES ════ */

body { font-family: 'Inter', sans-serif; background-color: #f1f5f9; }
.text-itbulks { color: #FF6600; }
.bg-itbulks { background-color: #FF6600; }

/* ── Premium Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* ── Global Focus Ring ── */
input:not([type="checkbox"]):focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: #FF6600 !important;
    box-shadow: 0 0 0 3px rgba(255,102,0,0.12) !important;
    background-color: #ffffff !important;
}

/* ── Checkbox Orange Accent ── */
input[type="checkbox"] { accent-color: #FF6600; }

/* ── Modal Animations ── */
.modal-enter { animation: modalFadeIn 0.3s ease-out forwards; }
.modal-box-enter { animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes modalFadeIn { from { opacity: 0; backdrop-filter: blur(0px); } to { opacity: 1; backdrop-filter: blur(4px); } }
@keyframes modalScaleUp { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ── Submit Button ── */
#btnSubmit { transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
#btnSubmit:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255,102,0,0.22); }
#btnSubmit:disabled { opacity: 0.75; cursor: not-allowed; transform: none !important; }

/* ── Step Transitions (Register Flow) ── */
#step1, #step2 {
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#step1.hidden-step { opacity: 0; transform: translateY(-12px); pointer-events: none; position: absolute; }
#step2.hidden-step { opacity: 0; transform: translateY(12px); pointer-events: none; position: absolute; }
#step1.visible-step, #step2.visible-step { opacity: 1; transform: translateY(0); position: relative; }

/* ── Account Type Cards (Register Flow) ── */
.account-type-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.account-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.10);
}
.account-type-card.selected {
    border-color: #FF6600 !important;
    background-color: #fff7ed !important;
    box-shadow: 0 0 0 3px rgba(255,102,0,0.15);
}
.account-type-card.selected .card-icon-box {
    background-color: #FF6600 !important;
    border-color: #FF6600 !important;
}
.account-type-card.selected .card-icon-box i { color: #fff !important; }
.account-type-card.selected .card-title { color: #FF6600 !important; }

/* ══════════════════════════════════════════════════════════════════════════
   IT Bulks Premium Smart Dropdown (Countries/States)
   ══════════════════════════════════════════════════════════════════════════ */

/* زر القائمة الرئيسي */
.itb-select-trigger {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 0.75rem 1rem; background-color: rgba(249, 250, 251, 0.5);
    border: 1px solid #e5e7eb; border-radius: 0.75rem;
    font-size: 0.875rem; font-weight: 700; color: #4b5563;
    cursor: pointer; transition: all 0.2s ease;
}
.itb-select-trigger:hover { border-color: #FF6600; background-color: #fff; }
.itb-select-trigger:focus { outline: none; border-color: #FF6600; box-shadow: 0 0 0 3px rgba(255,102,0,0.12); background-color: #fff; }

/* حاوية القائمة المنسدلة */
.itb-dropdown-menu {
    display: none; position: absolute; z-index: 1000;
    width: 100%; margin-top: 0.5rem; background-color: #fff;
    border: 1px solid #f3f4f6; border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.itb-dropdown-menu.open {
    display: block; opacity: 1; transform: translateY(0);
}

/* شريط البحث الداخلي */
.itb-dropdown-search {
    padding: 0.75rem; border-bottom: 1px solid #f3f4f6;
    background-color: #f8fafc; position: sticky; top: 0; z-index: 10;
}
.itb-dropdown-search input {
    width: 100%; padding: 0.6rem 1rem 0.6rem 2.2rem;
    background-color: #fff; border: 1px solid #e5e7eb; rounded-radius: 0.5rem;
    font-size: 0.75rem; font-weight: 600; outline: none; transition: border-color 0.2s;
}
.itb-dropdown-search input:focus { border-color: #FF6600; }
.itb-dropdown-search i { position: absolute; left: 1.5rem; top: 1.45rem; color: #9ca3af; font-size: 0.8rem; }

/* قائمة العناصر */
.itb-dropdown-list {
    max-height: 240px; overflow-y: auto; padding: 0.5rem 0;
}
.itb-dropdown-item {
    padding: 0.6rem 1.25rem; font-size: 0.875rem; font-weight: 600; color: #374151;
    cursor: pointer; display: flex; align-items: center; gap: 0.75rem; transition: background-color 0.15s;
}
.itb-dropdown-item:hover { background-color: #fff7ed; color: #FF6600; }
.itb-dropdown-group-title {
    padding: 0.4rem 1.25rem; font-size: 0.65rem; font-weight: 900;
    text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af;
    background-color: #f9fafb; margin-top: 0.25rem;
}

/* 📱 معمارية الهاتف (Bottom Sheet) */
@media (max-width: 768px) {
    .itb-dropdown-menu {
        position: fixed; inset: auto 0 0 0; margin: 0; width: 100%;
        border-radius: 1.5rem 1.5rem 0 0; padding-bottom: max(2rem, env(safe-area-inset-bottom));
        transform: translateY(100%);
    }
    .itb-dropdown-menu.open { transform: translateY(0); }
    .itb-dropdown-list { max-height: 50vh; }
    
    /* طبقة التعتيم الخلفية للهاتف */
    .itb-backdrop {
        display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.4);
        backdrop-filter: blur(4px); z-index: 999; opacity: 0; transition: opacity 0.2s;
    }
    .itb-backdrop.open { display: block; opacity: 1; }
}