.main-header {
    background-color: #1f2937;
    /* bg-gray-800 */
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.header-left h1 {
    font-size: 1.5rem;
    /* text-2xl */
    font-weight: bold;
}

.header-left p {
    font-size: 0.875rem;
    /* text-sm */
    color: #9ca3af;
    /* text-gray-400 */
}

.header-center {
    flex-grow: 1;
    text-align: center;
}

#cancel-all-btn {
    background-color: #dc2626;
    /* bg-red-600 */
    color: white;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    /* rounded-md */
}

#cancel-all-btn:hover {
    background-color: #b91c1c;
    /* hover:bg-red-700 */
}

.header-right .user-status {
    position: relative;
    cursor: pointer;
}

#header-left-settings input[type="number"],
#header-right-settings input[type="number"] {
    -moz-appearance: textfield;
}

#header-left-settings input[type="number"]::-webkit-outer-spin-button,
#header-left-settings input[type="number"]::-webkit-inner-spin-button,
#header-right-settings input[type="number"]::-webkit-outer-spin-button,
#header-right-settings input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.header-right .user-status-text {
    background-color: #374151;
    /* bg-gray-700 */
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.header-right .dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background-color: #374151;
    /* bg-gray-700 */
    border-radius: 0.375rem;
    padding: 0.5rem;
    min-width: 150px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1001;
}

.header-right .user-status:hover .dropdown-menu,
.header-right .dropdown-menu:hover,
.header-right .dropdown-menu.show {
    display: block;
}

.header-right .dropdown-menu button {
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    background-color: #4b5563;
    /* bg-gray-600 */
    color: white;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
    transition: background-color 0.2s;
}

.header-right .dropdown-menu button:last-child {
    margin-bottom: 0;
}

.header-right .dropdown-menu button:hover {
    background-color: #6b7280;
    /* bg-gray-500 */
}

/* Nested dropdown styles for Data Imports submenu */
.header-right .dropdown-menu .submenu-parent {
    position: relative;
}

.header-right .dropdown-menu .submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 0.5rem;
    background-color: #374151;
    /* bg-gray-700 */
    border-radius: 0.375rem;
    padding: 0.5rem;
    min-width: 150px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1002;
}

.header-right .dropdown-menu .submenu-parent:hover .submenu,
.header-right .dropdown-menu .submenu:hover {
    display: block;
}

.header-right .dropdown-menu .submenu button {
    margin-bottom: 0.25rem;
}

.header-right .dropdown-menu .submenu button:last-child {
    margin-bottom: 0;
}

/* New Price Flash Animation (3-Border Style: Top, Left, Right) */
@keyframes flashNewPrice {
    0% {
        box-shadow: inset 0 2px 0 0 #06b6d4, inset 2px 0 0 0 #06b6d4, inset -2px 0 0 0 #06b6d4;
        /* Cyan-500 */
        background-color: rgba(6, 182, 212, 0.1);
    }

    100% {
        box-shadow: none;
        background-color: transparent;
    }
}

.new-price-cue {
    animation: flashNewPrice 2s ease-out;
}