/* ===== CORE VARIABLES ===== */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-gradient: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    --primary-shadow: rgba(37, 99, 235, 0.35);
    --primary-bg: rgba(37, 99, 235, 0.08);
    --primary-bg-hover: rgba(37, 99, 235, 0.15);
    --danger: #EF4444;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --border-color: #E5E7EB;
    --bg-body: #F3F4F6;
    --bg-card: #FFFFFF;

    --header-height: 72px;
    --footer-height: 68px;
    --radius-sm: 12px;
    --radius-pill: 50px;
    --shadow-footer: 0 -4px 30px rgba(0, 0, 0, 0.06);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-med: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: var(--bg-body);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== PHONE FRAME ===== */
.phone-frame {
    width: 100%;
    height: 100%;
    max-width: 480px;
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0 auto;
}

/* ===== HEADER ===== */
.custom-header {
    background: var(--bg-card);
    padding: 14px 18px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    min-height: var(--header-height);
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-color);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px var(--primary-shadow);
    flex-shrink: 0;
}

.brand-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.brand-title span {
    color: var(--primary);
}

.brand-subtitle {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
    margin-top: 1px;
    line-height: 1.2;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    font-size: 20px;
    background: transparent;
    border: none;
    padding: 0;
    text-decoration: none;
}

.icon-btn:hover {
    background: var(--primary-bg);
    color: var(--primary);
    /* transform: scale(1.05); */
}

.icon-btn:active {
    transform: scale(0.92);
}

.notification-wrapper {
    position: relative;
}

.notif-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--danger);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.header-actions .icon-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-shadow);
}

/* ===== BOOTSTRAP DROPDOWN OVERRIDES ===== */
.dropdown-menu-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
    padding: 8px 0;
    min-width: 220px;
    margin-top: 12px;
}

.dropdown-menu-custom .dropdown-header {
    padding: 10px 20px 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.dropdown-menu-custom .dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.dropdown-menu-custom .dropdown-item:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.dropdown-menu-custom .dropdown-item i {
    width: 20px;
    font-size: 17px;
    color: var(--text-muted);
}

.dropdown-menu-custom .dropdown-item:hover i {
    color: var(--primary);
}

.dropdown-menu-custom .dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 16px;
}

.dropdown-menu-custom .dropdown-item.danger {
    color: var(--danger);
}

.dropdown-menu-custom .dropdown-item.danger i {
    color: var(--danger);
}

.dropdown-menu-custom .dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.08);
}

.dropdown-menu-custom .badge-count {
    margin-left: auto;
    background: var(--primary-bg);
    color: var(--primary);
    padding: 2px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
}

/* ===== CONTENT AREA ===== */
.scrollable-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: none;
}

.scrollable-content::-webkit-scrollbar {
    display: none;
}

/* ===== FOOTER ===== */
.custom-footer {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 12px 14px;
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-footer);
    position: sticky;
    bottom: 0;
    z-index: 100;
    height: var(--footer-height);
    min-height: var(--footer-height);
    flex-shrink: 0;
}

.nav-item-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    gap: 3px;
    padding: 4px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-med);
    text-decoration: none;
    border: none;
    background: transparent;
}

.nav-item-footer i {
    font-size: 24px;
    transition: all var(--transition-med);
}

.nav-item-footer .nav-label {
    font-size: 11px;
    font-weight: 500;
}

.nav-item-footer.active {
    color: var(--primary);
}

.nav-item-footer.active i {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-item-footer.active .nav-label {
    color: var(--primary);
    font-weight: 600;
}

.nav-item-footer:hover i {
    transform: translateY(-2px);
    color: var(--primary);
}

.nav-item-footer:active {
    transform: scale(0.92);
}

/* ===== TOAST ===== */
.toast-container-custom {
    position: fixed;
    bottom: 84px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    max-width: 400px;
    width: 90%;
    pointer-events: none;
}

.toast-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    justify-content: center;
}

.toast-custom.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-custom.hide {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
}

.toast-custom i {
    font-size: 20px;
}

.toast-icon-success {
    color: #10B981;
}

.toast-icon-error {
    color: #EF4444;
}

.toast-icon-info {
    color: #2563EB;
}

.toast-icon-warning {
    color: #F59E0B;
}

/* ===== RESPONSIVE - NO MEDIA QUERIES NEEDED ===== */
/* Everything is fluid and responsive by default */