.nav-link {
    color: #ffffff;
    text-decoration: none;
    margin-right: 10px;
}

.nav-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.nav-link-special {
    color: #ffffff;
    font-weight: bold;
}

.dashboard-link {
    text-decoration: none;
    color: #2c3e50;
    padding: 0.75rem;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 1.1rem;
    border: 1px solid transparent;
}

.dashboard-link:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateX(5px);
}

.nav-link-login {
    font-weight: bold;
}

.nav-link-register {
    font-weight: bold;
    background: #3498db;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: white !important;
}

.nav-link-register:hover {
    background: #2980b9;
}

.auth-link {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-link-button {
    background: #3498db;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.auth-link-button:hover {
    background: #2980b9;
}

.text-right {
    text-align: right;
}

/* Dropdown Navigation Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2c3e50;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.25);
    z-index: 1000;
    border-radius: 4px;
    border: 1px solid #34495e;
    overflow: hidden;
    left: 0;
}

/* Align rightmost dropdown to the right so it doesn't clip */
.dropdown-right .dropdown-content {
    left: auto;
    right: 0;
}

.dropdown-content .nav-link,
.dropdown-content a {
    color: #ecf0f1 !important;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    margin-right: 0;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
}

.dropdown-content .nav-link:hover,
.dropdown-content a:hover {
    background-color: #34495e;
    color: #ffffff !important;
    text-decoration: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-trigger {
    cursor: pointer;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    color: #ecf0f1;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.dropdown:hover .dropdown-trigger,
.dropdown-trigger:hover {
    color: #ffffff;
}

.dropdown-trigger::after {
    content: ' ▾';
    font-size: 0.8rem;
}

/* ==========================================================================
   Table Container with Fixed Headers & Scrollbars
   ========================================================================== */
.table-container {
    max-height: calc(100vh - 280px);
    min-height: 200px;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    margin-top: 1rem;
    background: #ffffff;
}

.table-container table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-container thead th {
    position: sticky;
    top: 0;
    background-color: #f8fafc !important;
    z-index: 10;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #cbd5e0;
}

.table-container tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #edf2f7;
    color: #2d3748;
}

/* Hover and selection transitions for table rows */
.table-container tbody tr {
    transition: background-color 0.2s ease, border-left-color 0.2s ease;
}

.table-container tbody tr:hover {
    background-color: #f7fafc;
}

.table-container tbody tr.selected-row {
    background-color: #e6fffa !important;
}

/* ==========================================================================
   Responsive Sticky Menu Bar
   ========================================================================== */
.nav-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    transition: color 0.2s;
    outline: none;
}

.nav-menu-btn:hover {
    color: #ffffff;
}

.nav-links-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.user-dropdown {
    margin-left: auto;
}

@media (max-width: 768px) {
    .nav-menu-btn {
        display: block;
        margin-left: auto;
    }

    .nav-links-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2c3e50;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.5rem;
        box-shadow: 0 8px 16px rgba(0,0,0,0.15);
        border-top: 1px solid #34495e;
        gap: 0.5rem;
        z-index: 999;
    }

    .nav-links-container.open {
        display: flex;
    }

    .user-dropdown {
        margin-left: 0;
        border-top: 1px solid #34495e;
        padding-top: 0.5rem;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 0.75rem 0;
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background-color: #34495e;
        width: 100%;
        padding-left: 1rem;
        border-radius: 4px;
        margin-top: 0.25rem;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown-content .nav-link,
    .dropdown-content a {
        padding: 8px 16px;
    }
}