/* Layout CSS for CertEdNow - Header, Navigation, and Main Content Styles */

/* Layout-specific Brand Variables are now defined in brand-specific stylesheets only */

/* Common Body Background */
body {
    background: var( --brand-light );
    color: #333;
}

/* Header Styles */
.header {
    background: linear-gradient( 135deg, var( --brand-header-gradient-start ) 0%, var( --brand-header-gradient-end ) 100% );
    color: white;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba( 0, 0, 0, 0.1 );
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 4px solid var( --brand-header-border );
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-section img {
    height: 40px;
    width: auto;
}

.logo-section h1 {
    font-size: 24px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* User Menu Styles */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.user-menu:hover {
    background: rgba( 255, 255, 255, 0.1 );
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba( 255, 255, 255, 0.2 );
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.user-privileges {
    font-size: 12px;
    opacity: 0.8;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.user-menu.active .dropdown-arrow {
    transform: rotate( 180deg );
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba( 0, 0, 0, 0.15 );
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY( -10px );
    transition: all 0.3s ease;
    margin-top: 10px;
}

.user-menu.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY( 0 );
}

.dropdown-item {
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item.logout {
    color: #dc3545;
}

/* Navigation Menu Styles */
.nav-menu {
    background: white;
    border-bottom: 1px solid #e1e5e9;
    box-shadow: 0 2px 4px rgba( 0, 0, 0, 0.05 );
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.nav-link:hover {
    color: var( --brand-nav-hover-color );
    background: #f8f9fa;
}

.nav-link.active {
    color: var( --brand-nav-active-color );
    border-bottom-color: var( --brand-nav-active-color );
    background: #f8f9fa;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var( --brand-nav-active-color );
    transform: scaleX( 0 );
    transition: transform 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: scaleX( 1 );
}

/* Main Content Styles */
.main-content {
    margin-top: 130px;
    padding: 30px 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.page-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.content-area {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba( 0, 0, 0, 0.05 );
    min-height: 400px;
}

/* Responsive Design */
@media ( max-width: 768px ) {
    .header-content {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .content-area {
        padding: 20px;
    }
}

