* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    flex: 0 0 auto;
}

.nav-logo img {
    padding-top: 7px;
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 50px;
    align-items: center;
    flex: 1;
    justify-content: center;
    margin: 0 40px;
}

.nav-link {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
    border-bottom: 2px solid transparent;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #1a1a1a;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #1a1a1a;
}

.nav-link.active {
    color: #1a1a1a;
    font-weight: 500;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

.main-content {
    min-height: calc(100vh - 140px);
    padding: 20px;
    padding-top: 100px;
    background-color: #f5f7fa;
}

/* Override for home page to remove top padding */
.main-content.home-page {
    padding-top: 0;
}

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

.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero-section h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.flash-messages {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1001;
    min-width: 300px;
    max-width: calc(100% - 40px); /* Prevent overflow on small screens */
}

@media (max-width: 768px) {
    .flash-messages {
        top: 80px;
        right: 10px;
        left: 10px;
        min-width: auto;
        width: calc(100% - 20px);
    }
}

.flash-message {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease-out;
    font-size: 14px;
}

@media (max-width: 768px) {
    .flash-message {
        padding: 12px 16px;
        font-size: 13px;
        border-radius: 6px;
    }
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.close-flash {
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    margin-left: 15px;
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.close-flash:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .close-flash {
        min-width: 36px;
        min-height: 36px;
        font-size: 22px;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 44px;
}

@media (max-width: 768px) {
    .btn {
        padding: 12px 20px;
        font-size: 13px;
        min-height: 48px;
        width: auto;
    }
}

.btn-primary {
    background: #ff671f;
    color: white;
}

.btn-primary:hover {
    background: #ca4b10;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.login-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 13px;
    border: none;
}

.login-info p {
    margin: 5px 0;
}

@media (max-width: 968px) {
    .nav-container {
        padding: 0px 20px 0px 10px;
        height: 70px;
    }
    
    .nav-menu {
        gap: 30px;
        margin: 0 20px;
    }
    
    .nav-link {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-container {
        padding: 0px 20px 0px 5px;
        height: 70px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        gap: 20px;
        margin: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        font-size: 14px;
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }
    
    .nav-link::after {
        left: 50%;
        transform: translateX(-50%);
        width: 0;
    }
    
    .nav-link:hover::after,
    .nav-link.active::after {
        width: 60%;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .flash-messages {
        right: 10px;
        left: 10px;
        min-width: auto;
        top: 90px;
    }
    
    .main-content {
        padding-top: 90px;
    }
    
    .main-content.home-page {
        padding-top: 0;
    }
}
