/* ==========================================================================
   Base Header Styles
   ========================================================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding-bottom: 20px ;
    padding-top: 20px;
    padding-left: 24px;
}

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

.header-right{
    width: 240px;
}
.header-icon-wrapper {
    width: 40px;
    height: 40px;
    background-color: #20362E;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-icon {
    width: 24px;
    height: 24px;
}

/* Specific icon colors can be handled with additional classes or inline styles */
.header-icon.header-icon-color {
    filter: invert(57%) sepia(85%) saturate(410%) hue-rotate(99deg) brightness(100%) contrast(92%);
}

.header-text-content {
    display: flex;
    flex-direction: column;
}

.page-title {
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.page-subtitle {
    color: #727272;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    margin: 4px 0 0 0;
}

/* ==========================================================================
   Instance Selector
   ========================================================================== */
.instance-selector-wrapper {
    position: relative;
}

.instance-selector {
    background-color: #242527;
    
    gap: 8px;
    cursor: pointer;
}

.instance-select-header-row{
    background-color: #242527;
    border-radius: 4px;
    display: flex;
    flex-direction: row;
}

.instance-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background-color: #242527;
    border-radius: 4px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 180px;
    padding: 8px 0;
}

.instance-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    cursor: pointer;
    width: 221px;
}

.instance-option:hover {
    background-color: #2e2f31;
}

.instance-text {
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #3FE8A6;
    border-radius: 2px;
}

.status-dot.online {
    background-color: #3FE8A6;
}

.status-dot.offline {
    background-color: #E83F3F;
}

.status-dot.idle {
    background-color: #808080;
}


/* ==========================================================================
   Search Bar (Generic)
   ========================================================================== */
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar input[type="text"] {
    background-color: #26282B;
    border: 1px solid #363739;
    border-radius: 8px;
    padding: 10px 15px 10px 40px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    width: 250px;
}

.search-bar input[type="text"]::placeholder {
    color: #A0A0A0;
}

.search-icon {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 20px;
    filter: invert(45%) sepia(0%) saturate(1%) hue-rotate(242deg) brightness(45%) contrast(80%); /* Color: #727272 */
}

/* ==========================================================================
   User/Notification Icons
   ========================================================================== */
.notification-icon img {
    width: 24px;
    height: 24px;
    filter: invert(45%) sepia(0%) saturate(1%) hue-rotate(242deg) brightness(45%) contrast(80%);
}

.header-user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--dot-color, red);
    display: inline-block;
}

.header-selector-left{
    width: 100px;
    border-right: rgba(255, 255, 255, 0.02) 2px solid;
    padding-top: 8px;
    padding-bottom: 8px;
    margin-left: 16px;
}

.instance-icon{
    margin-right: 5px;
    width: 16px;
    height: 16px;
    filter: invert(45%) sepia(0%) saturate(1%) hue-rotate(242deg) brightness(45%) contrast(80%); /* Color: #727272 */
}

.header-selector-right{
    width: 100px;
    padding-left: 5px;
    padding-top: 8px;
    padding-bottom: 8px;
    margin-left: 5px;
    
}

.dropdown-arrow{
    margin-left: 10px;
    width: 16px;
    height: 16px;
    filter: invert(50%) sepia(0%) saturate(1%) hue-rotate(242deg) brightness(50%) contrast(70%); /* Color: #818283 */
}
.instance-id{
    margin-left: 5px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
}