/* Header Styles */
.dash-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 16px 28px;
    border-bottom: 1px solid #EFEFEF;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.admin-avatar-container {
    width: 38px;
    height: 38px;
    background-color: #FFF3EE; /* Light orange background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #FFE0D3;
}

    .admin-avatar-container svg {
        width: 12px;
        height: 12px;
        color: #888; /* Icon color */
    }
/* Page Title & Subtitle */
.dash-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.dash-page-subtitle {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

/* Right Section */
.dash-navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    background: #F4F6FA;
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    padding: 7px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    transition: 0.3s;
}

    .lang-btn.active {
        background: #FF4B00;
        color: #fff;
        font-weight: 700;
    }

/* Profile Section */
.admin-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}
/* Ab ye height/width 100% kaam karegi */
.admin-profile-svg {
    width: 2px; /* Yahan se size chota bada karein */
    height: 2px;
    display: block;
    transition: transform 0.2s ease;
}
.admin-profile:hover .admin-profile-svg {
    transform: scale(1.1); /* Hover par thoda bada hoga (optional) */
}

.admin-avatar-container {
    width: 40px;
    height: 40px;
    background-color: #FFF3EE; /* Light orange background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #FFE0D3;
    overflow: hidden;
}

.admin-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dropdown */
.profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border: 1px solid #EFEFEF;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-width: 180px;
    z-index: 1100;
    overflow: hidden;
}

    .profile-dropdown.show {
        display: block;
        animation: fadeIn 0.2s ease;
    }

    .profile-dropdown a {
        display: block;
        padding: 12px 18px;
        font-size: 14px;
        color: #333;
        text-decoration: none;
    }

        .profile-dropdown a:hover {
            background: #F4F6FA;
            color: #FF4B00;
        }

    .profile-dropdown .logout-link {
        color: #FF4B00;
        font-weight: 600;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RTL Support Styles */
[dir="rtl"] .profile-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .dash-navbar-right {
    flex-direction: row-reverse;
}

/* ══════════════════════════════
   RESPONSIVE — Header
══════════════════════════════ */
.dash-navbar-left {
    min-width: 0;
    flex: 1;
}

.dash-page-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .dash-navbar {
        padding: 14px 16px;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .admin-info {
        display: none !important;
    }

    .admin-chevron {
        display: none !important;
    }

    .dash-page-title {
        font-size: 17px;
    }

    .dash-page-subtitle {
        font-size: 11px;
    }

    .lang-toggle {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .dash-navbar {
        padding: 10px 12px;
    }

    .dash-page-subtitle {
        display: none;
    }
}
