/* Figma Canvas Header Component Styles (1660x80) */

.header-container {
    height: 60px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px 0 20px; /* Aligned according to Figma layout */
    position: sticky;
    top: 0;
    z-index: 999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #0A0A0A;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.12s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.header-back-btn:hover {
    background-color: #f1f5f9;
    color: #0c1e91;
}

.header-back-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

.hamburger-btn {
    background-color: #ffffff;
    border: 1px solid #d9e0e7;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.15s, border-color 0.15s;
    box-sizing: border-box;
}

.hamburger-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.hamburger-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #333333;
    stroke-width: 2;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.location-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #555555;
    font-size: 12px;
    font-weight: 500;
}

.location-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #777777;
    stroke-width: 1.8;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.15s;
}

.notification-btn:hover {
    background-color: #f5f5f5;
}

    .notification-btn svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: #A3A3A3;
        stroke-width: 1.8;
    }

.notification-badge {
    position: absolute;
    top: -1px;
    right: 2px;
    background-color: #DC2626;
    color: #ffffff;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffffff;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.user-profile-btn:hover {
    background-color: #f5f5f5;
}

.avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #0b0c10;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.user-name {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
}

.user-role {
    font-size: 10px;
    color: #999999;
    font-weight: 500;
}

.profile-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-arrow svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #888888;
    stroke-width: 2.5;
    transition: transform 0.2s ease;
}

.profile-arrow.rotate svg {
    transform: rotate(180deg);
}

/* User Profile Dropdown */
.user-profile-container {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    z-index: 1000;
    overflow: hidden;
    animation: dropdownFadeIn 0.15s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0b0c10;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.dropdown-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-email {
    font-size: 12px;
    color: #666666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-role {
    font-size: 12px;
    color: #666666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Status indicator dot next to the profile in the header */
.user-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px #ffffff;
}

.user-status-dot.active {
    background-color: #22c55e;
}

.user-status-dot.inactive {
    background-color: #9ca3af;
}

/* Status badge inside the profile dropdown */
.dropdown-user-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    width: fit-content;
    margin-top: 2px;
}

.dropdown-user-status .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.dropdown-user-status.active {
    color: #15803d;
    background-color: #dcfce7;
}

.dropdown-user-status.active .status-dot {
    background-color: #22c55e;
}

.dropdown-user-status.inactive {
    color: #4b5563;
    background-color: #f3f4f6;
}

.dropdown-user-status.inactive .status-dot {
    background-color: #9ca3af;
}

.dropdown-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 0;
}

.dropdown-item {
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.12s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.dropdown-item.sign-out {
    color: #DC2626;
}

.dropdown-item.sign-out:hover {
    background-color: #FEE2E2;
}

@media (max-width: 768px) {
    .header-container {
        position: relative;
        height: auto;
        padding: 8px 12px;
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    .header-left {
        justify-content: space-between;
    }
    .header-right {
        justify-content: space-between;
        border-top: 1px solid #f0f0f0;
        padding-top: 8px;
    }
}
