/* Responsive Header & Hamburger Menu */
.header-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    margin-right: 10px;
}
.header-hamburger span {
    display: block;
    height: 4px;
    width: 28px;
    background: #333;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}
.header-hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.header-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.header-hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.header-nav {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    transition: right 0.3s, opacity 0.3s;
}

@media (max-width: 900px) {
    .header-hamburger {
        display: flex !important;
    }
    .header-nav {
        position: fixed;
        top: 0;
        right: -100vw;
        flex-direction: column;
        background: #fff;
        width: 220px;
        height: 100vh;
        box-shadow: -2px 0 16px rgba(0,0,0,0.08);
        padding-top: 70px;
        gap: 1.5rem;
        z-index: 1001;
        opacity: 0;
        pointer-events: none;
        transition: right 0.3s, opacity 0.3s;
    }
    .header-nav.nav-open {
        right: 0;
        opacity: 1;
        pointer-events: auto;
    }
    .header-container {
        flex-wrap: nowrap;
    }
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

@media (max-width: 600px) {
    .header-nav {
        width: 100vw;
        padding-top: 60px;
    }
}

.nav-link {
    color: #333;
    font-size: 1.08rem;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.nav-link:hover {
    background: #f2f2f2;
    color: #764ba2;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 20px;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.header p {
    color: #666;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.links {
    text-align: center;
    margin-top: 1.5rem;
}

.links a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0 10px;
}

.links a:hover {
    text-decoration: underline;
}

.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.message.success {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: 100vh;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e1e1e1;
    margin-bottom: 2rem;
}

.navbar h1 {
    color: #333;
    font-size: 1.8rem;
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 1;
    padding: 10px 0;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.user-menu:hover .dropdown-content {
    display: block;
}

.welcome-section {
    text-align: center;
    padding: 3rem 0;
}

.welcome-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.welcome-section p {
    font-size: 1.2rem;
    color: #666;
}