/* Header Styling */
.wp-colfax-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px;
    font-family: var(--wp--preset--font-family--dm-sans) !important;
}

/* Left Side: Brand Logo */
.header-left {
    display: flex;
    align-items: center;
    height: 50px; /* Set fixed height */
    width: 50px; /* Adjust width as needed */
    overflow: hidden; /* Prevents oversized logo */
}

.header-left a {
    display: flex;
    align-items: center;
}

.header-logo {
    max-height: 80%;
    max-width: 80%;
    object-fit: contain; /* Ensures it resizes properly */
}

/* Right Side: Buttons */
.header-right {
    display: flex;
    gap: 5px;
}

.header-button {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 10px;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.header-button:hover {
    color: var(--wp--preset--color--cfx--hover--font);
    background: var(--wp--preset--color--primary);
}

.dropdown-container {
    display: flex;
}

.menu-container:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
}

.menu-button {
    background-color: transparent;
    font-size: 16px;
    color: var(--wp--preset--color--cfx-font);
    padding: 10px 10px;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu-button:hover {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--cfx--hover--font);
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-button:hover .menu-icon div {
    background-color: var(--wp--preset--color--cfx--hover--font);
}

.menu-icon div {
    width: 14px;
    height: 1px;
    background-color: var(--wp--preset--color--cfx-font);
    border-radius: 2px;
}

.menu-icon div:nth-child(2) {
    width: 12px;
}

.dropdown-items {
    position: absolute;
    right: 0;
    margin-top: 55px;
    margin-right: 10px;
    font-size: 14px;
    width: 180px;
    color: var(--wp--preset--color--cfx-font);
    background-color: var(--wp--preset--color--cfx--header--bg);
    border: 1px solid var(--wp--preset--color--cfx-font);
    border-radius: 5px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 100;
}

.dropdown-items a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: var(--wp--preset--color--cfx-font);
    transition: background 0.3s;
}

.dropdown-items a:hover {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--cfx--hover--font);
}

.dropdown-container:hover .dropdown-items,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: var(--wp--preset--color--cfx-font);
    transition: background 0.3s;
}

.highlight {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--cfx-font);
}

.profile-button {
    background: none; /* Remove default button styles */
    border: none; /* Remove border */
    cursor: pointer; /* Change cursor to pointer */
    padding: 0; /* Remove padding */
    margin-right: 5px;
}

.profile-button:hover {
    border-radius: 5px;
    background-color: var(--wp--preset--color--primary);
}

.profile-icon-container {
    border: 2px solid var(--border-color); 
    border-radius: 50%; 
    padding: 4px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 35px; 
    height: 35px; 
    overflow: hidden; 
}

.user-profile-logo {
    background-color: var(--wp--preset--color--cfx--header--bg);
    object-fit: contain;
    width: 100%; 
    height: auto;
    border: 1px solid; 
    border-radius: 50%; 
    border-color: var(--wp--preset--color--cfx-font);
}

.access_status {
    padding: 10px 5px;
    font-size: 16px;
}

.access-active {
    color: green;
}

.access-requested {
    color: yellow;
}

.access-approved {
    color: orange;
}

.access_status {
    position: relative;
    cursor: pointer;
}

.access_status span {
    font-size: 14px;
    padding: 0px 7px;
    border-radius: 50% / 100%;
    color: green;
    border: 2px solid;
    border-color: green;
}

.access_status:hover::after {
    content: attr(title);
    position: absolute;
    left: 0;
    top: 100%;
    background: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--cfx-font);
    padding: 5px 10px;
    border-radius: 5px;
    white-space: pre-line;
    white-space: nowrap;
    font-size: 12px;
    z-index: 10;
}

.access_status .tooltip {
    visibility: hidden;
    width: max-content;
    max-width: 250px;
    color: var(--wp--preset--color--cfx-font);
    background: var(--wp--preset--color--cfx--header--bg);
    border: 1px solid var(--wp--preset--color--cfx-font);
    text-align: left;
    margin-top: 45px;
    padding: 10px 10px;
    border-radius: 5px;
    position: absolute;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    font-size: 14px;
    white-space: normal;
    z-index: 10;
}

.access_status:hover .tooltip,
.access_status .tooltip:hover {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.access_status .tooltip a {
    color: var(--wp--preset--color--primary);
    text-decoration: underline;
}

.access_status .tooltip a:hover {
    color: var(--wp--preset--color--secondary) ;
}