/* Reset some default styles for consistency */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f6fb;
    color: #222;
    min-height: 100vh;
}

header {
    background: linear-gradient(90deg, #007bff 60%, #5eb37a 100%);
    color: #fff;
    padding: 18px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    letter-spacing: 1px;
}

nav {
    margin: 18px 0;
    text-align: center;
}

nav a {
    color: #fff;
    background: #007bff;
    text-decoration: none;
    margin: 0 12px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 5px;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}

nav a:hover, nav a.active {
    background: #0056b3;
    color: #ffd700;
    text-decoration: none;
}

h1, h2, h3 {
    color: #343a40;
    margin-top: 0.7em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.container {
    width: 95%;
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 30px 24px;
    overflow: hidden;
}

.footer {
    background: linear-gradient(90deg, #007bff 60%, #5eb37a 100%);
    color: #fff;
    text-align: center;
    padding: 14px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 1rem;
    letter-spacing: 1px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.07);
}

/* Avatar Dropdown Styles */
.avatar-dropdown {
    position: relative;
    display: inline-block !important;
    margin-left: 15px;
    vertical-align: middle;
}

.avatar-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #007bff;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.avatar-img:hover {
    border-color: #5eb37a;
    transform: scale(1.05);
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    border: 1px solid #e9ecef;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.dropdown-menu-custom.show {
    display: block;
}

.dropdown-item-custom {
    display: block;
    width: 100%;
    padding: 10px 15px;
    clear: both;
    font-weight: 400;
    color: #333;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: all 0.2s ease;
}

.dropdown-item-custom:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.dropdown-divider-custom {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid #e9ecef;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        width: 98%;
        padding: 16px 6px;
    }
    nav a {
        margin: 0 6px;
        padding: 7px 10px;
        font-size: 0.95em;
    }
    header, .footer {
        font-size: 1em;
        padding: 10px 0;
    }
    
    .avatar-dropdown {
        margin-left: 8px;
    }
    
    .avatar-img {
        width: 30px;
        height: 30px;
    }
    
    .dropdown-menu-custom {
        min-width: 180px;
        right: -10px;
    }
}