/* ===========================
   HEADER
=========================== */

.dh-header {
    background: #eef4ff;
    border-bottom: 1px solid #dbeafe;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.dh-header > .container-fluid > .row {
    min-height: 76px;
}

/* ===========================
   LOGO
=========================== */

.dh-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.dh-logo-img {
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

/* ===========================
   NAVIGATION
=========================== */

.dh-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 14px;

    color: #475569;
    font-weight: 600;
    font-size: 15px;

    text-decoration: none;

    border-radius: 10px;

    transition: all .25s ease;
}

.dh-header .navbar-nav {
    align-items: center;
    gap: 4px !important;
}

.dh-header .col-lg-6 {
    padding-left: 0;
}

.dh-nav-link:hover {
    background: rgba(37, 99, 235, .08);
    color: #2563eb;
}

.dh-nav-link.active {
    color: #2563eb;
    background: rgba(37, 99, 235, .10);
    border-bottom: 3px solid #2563eb;
}

.dh-nav-link i {
    font-size: 15px;
}

/* ===========================
   BADGES
=========================== */

.badge {
    font-size: 12px;
    padding: 8px 14px;
    font-weight: 600;
}

/* ===========================
   NOTIFICATION
=========================== */

.btn-light {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.btn-light:hover {
    background: #f8fafc;
}

/* ===========================
   USER AVATAR
=========================== */

.dh-avatar {
    padding: 0;
    width: 42px;
    height: 42px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #4f46e5;
    color: white;

    font-weight: 700;
    cursor: pointer;

    transition: .2s;
}

.dh-avatar:hover {
    transform: scale(1.05);
}

/* ===========================
   DROPDOWN
=========================== */

.dropdown-menu {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .10);
}

.dh-header .dropdown {
    position: relative;
}

.dh-header #profileDropdownMenu {
    left: auto;
    right: 0;
    width: min(320px, calc(100vw - 1rem));
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
}

.profile-account-summary {
    min-width: 230px;
    padding: 4px 8px 8px;
}

.profile-dhan-actions {
    min-width: 230px;
    padding: 0 8px;
}

#profileDhanActionStatus {
    min-height: 1.25rem;
    line-height: 1.25rem;
}

#profileAccountStatus {
    color: #64748b;
}

.dhan-login-dialog {
    width: min(92vw, 460px);
    max-width: 460px;
    max-height: min(88vh, 680px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 16px;
    color: #1f2937;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.dhan-login-dialog[open] {
    position: fixed;
    inset: 0;
}

.dhan-login-dialog::backdrop {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.dhan-login-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.4rem 1.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.dhan-login-dialog-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.dhan-login-account {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.dhan-login-account-icon {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 1.2rem;
}

.dhan-login-security {
    margin: 1rem 0;
}

.dhan-login-actions {
    display: grid;
    gap: 0.65rem;
}

#profileDhanActionStatus {
    min-height: 1.25rem;
    line-height: 1.4;
}

/* ===========================
   MARKET TICKER
=========================== */

.dh-ticker-row {

    background: #ffffff;

    border-top: 1px solid #dbeafe;

    overflow-x: auto;

    white-space: nowrap;

    scrollbar-width: thin;
}

.dh-ticker-row::-webkit-scrollbar {
    height: 5px;
}

.dh-ticker-row::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 20px;
}

.dh-ticker-row .d-flex {
    flex-wrap: nowrap;
}

.dh-tick-item {

    flex-shrink: 0;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 28px;

    border-right: 1px solid #eef2f7;
}

.dh-tick-item strong {
    color: #111827;
    font-size: 15px;
}

.dh-tick-up {
    color: #16a34a;
    font-weight: 700;
}

.dh-tick-down {
    color: #dc2626;
    font-weight: 700;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width:992px) {

    .dh-logo-img {
        height: 42px;
    }

    .dh-nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }

}

@media (max-width:768px) {

    .dh-logo-img {
        height: 38px;
    }

    .badge {
        display: none;
    }

}