/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding-top: 60px; 
}

/* Colors */
:root {
    --primary-color: #2196F3;
    --secondary-color: #1976D2;
    --text-primary: #333;
    --text-secondary: #666;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
    --footer-bg: #333;
    --footer-text: #fff;
    --footer-link: #666;
    --footer-link-hover: #fff;
}


header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color); 
}

.nav-links a.active {
    color: var(--primary-color);
}

.user-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.profile-link:hover {
    color: var(--primary-color);
}

.profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-picture i {
    font-size: 1.2rem;
    color: white;
}

.profile-link:hover .profile-picture {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: var(--secondary-color);
}

.user-name {
    font-weight: 500;
    font-size: 0.9rem;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.profile-btn, .logout-btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.profile-btn {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.profile-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.logout-btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

.logout-btn i {
    font-size: 1rem;
}

.login-btn, .register-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.login-btn {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background-color: transparent;
}

.login-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.register-btn {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.register-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Footer Styles */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 1.5rem;
    color: var(--footer-text);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--footer-link);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--footer-link-hover);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    font-size: 1.2rem;
    color: var(--footer-link);
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .user-actions {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h3 {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .profile-section {
        display: none;
    }
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome-text {
    color: #333;
    font-size: 0.9rem;
}

.dashboard-btn, .logout-btn {
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dashboard-btn {
    background-color: #4CAF50;
    color: white;
}

.dashboard-btn:hover {
    background-color: #45a049;
}

.logout-btn {
    background-color: #f44336;
    color: white;
}

.logout-btn:hover {
    background-color: #da190b;
}

.logout-btn i {
    margin-right: 5px;
}
