/* Simple sticky header container */
header.simple-sticky-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height, 60px) !important;
    min-height: 60px !important;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #ccc;
    transition: all 0.3s ease;
}

/* Add a subtle animation when header becomes sticky */
header.simple-sticky-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

/* Enhanced sticky effect */
header.simple-sticky-header:hover::before {
    opacity: 0.3;
}

/* Inner layout */
header.simple-sticky-header .container {
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* Logo styling */
.logo {
    font-size: 24px;
    font-weight: bold;
}
.logo a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

/* Navbar styling */
.navbar {
    display: flex;
    align-items: center;
    gap: 20px;
}
.navbar a,
.navbar .dropbtn {
    font-size: 1rem;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: background 0.3s;
    text-decoration: none;
    font-weight: bold;
}
.navbar a:hover,
.navbar .dropbtn:hover {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

/* User profile section styling */
.user-profile-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Class info styling */
.class-info {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

/* Profile link styling */
.profile-link {
    padding: 0 !important;
    background: none !important;
    border-radius: 50% !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-link:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Header profile image container - more specific selector */
header.simple-sticky-header .profile-image-container {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    border-radius: 50% !important;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    transition: border-color 0.2s ease;
    margin: 0 !important;
    background-color: transparent !important;
}

header.simple-sticky-header .profile-link:hover .profile-image-container {
    border-color: rgba(0, 0, 0, 0.4) !important;
}

/* Profile image */
.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Profile image placeholder */
.profile-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-initial {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Logout link styling */
.logout-link {
    font-size: 0.9rem;
    color: #333 !important;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.logout-link:hover {
    opacity: 1;
    background: rgba(231, 76, 60, 0.1) !important;
}

/* Dropdown menu */
.dropdown {
    position: relative;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 4px;
    overflow: hidden;
    z-index: 1001;
    
    /* dropdown animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    color: #333;
    padding: 10px 16px;
    text-decoration: none;
    transition: background 0.3s;
}
.dropdown-content a:hover {
    background: #f0f0f0;
}
.dropdown:hover .dropdown-content {
    display: block;
}

/* Subtitle/info text */
.subtitle {
    color: #ccc;
    font-size: 0.9rem;
    text-align: right;
    line-height: 1.3;
}