/* Base styles */
.table-fixed {
    table-layout: fixed;
    width: 100%;
}
.fixed-col {
    width: auto;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

/* Navbar styles */
#navbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4000;
    min-height: 65px;
    width: 100%;
    box-sizing: border-box;
}

.logo-container {
    flex: 0 1 auto;
    min-width: 0;
    margin-right: 0;
}

.logo-container img {
    display: block;
    height: 40px;
    width: auto;
    max-width: min(380px, 42vw);
    object-fit: contain;
}

.title-container {
    position: static;
    left: auto;
    transform: none;
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    overflow: hidden;
}

.navbar-title {
    margin: 0;
    font-size: clamp(0.85rem, 2vw, 1.35rem);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex: 0 0 auto;
}

/*.navbar-title {*/
/*    font-size: 1.25rem;*/
/*    font-weight: 600;*/
/*    color: #2c3e50;*/
/*    margin: 0;*/
/*    white-space: nowrap; !* Prevent title from wrapping *!*/
/*}*/

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0 0 0 auto; /* This pushes the menu to the right */
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
    margin-left: 15px;
}

.nav-link {
    color: #4a5568;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: #1a73e8;
    background-color: #f0f7ff;
}

.nav-link i {
    margin-right: 6px;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
}

.dropdown-item {
    padding: 8px 16px;
    color: #4a5568;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f0f7ff;
    color: #1a73e8;
}

.dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.2s;
}

.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Original logout button style */
.logout-icon {
    color: #4a5568;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.logout-icon:hover {
    color: #e53e3e;
}

/* Mobile styles */
.navbar-toggler {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #4a5568;
    cursor: pointer;
    margin-left: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex: 0 0 auto;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
    background: rgba(255, 255, 255, 0.45);
}

@media (max-width: 992px) {
    #navbar {
        padding: 6px 10px;
        gap: 8px;
    }

    .logo-container img {
        height: 32px;
        max-width: min(220px, 46vw);
    }

    .navbar-title {
        font-size: 0.95rem;
    }

    .navbar-toggler {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        top: auto;
        right: auto;
        background-color: transparent;
        width: auto;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }

    .nav-menu .nav-item:not(.profile-container) {
        display: none;
    }

    .nav-item {
        margin: 0;
        width: auto;
    }

    .nav-link {
        padding: 8px 10px;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        width: 100%;
        border-left: 3px solid #e2e8f0;
    }
}

@media (max-width: 720px) {
    .title-container {
        display: none;
    }

    .logo-container img {
        max-width: min(200px, 54vw);
    }
}