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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f7fc;
    color: #1e293b;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #4A90D9, #7B61FF);
    padding: 1rem 2rem;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

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

.nav-links li a {
    color: #fff;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links li a:hover {
    opacity: 0.8;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #e0eaff, #f0e6ff);
    border-radius: 0 0 50px 50px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #475569;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #4A90D9, #7B61FF);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 144, 217, 0.4);
}

/* Features */
.features, .templates, .testimonials {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2, .templates h2, .testimonials h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #1e293b;
}

.feature-grid, .template-grid, .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card, .template-card, .testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.feature-card:hover, .template-card:hover, .testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.template-color {
    height: 80px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #1e293b;
    color: #fff;
    margin-top: 3rem;
}

footer a {
    color: #7B61FF;
}

.footer-links {
    margin-top: 0.5rem;
}

/* Admin */
.admin-main {
    min-height: 60vh;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.login-form, .admin-panel {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.login-form h2, .admin-panel h2 {
    margin-bottom: 1.5rem;
}

.login-form input, .admin-panel input, .admin-panel textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
}

.admin-panel .form-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-panel .form-group input, .admin-panel .form-group textarea {
    flex: 1;
    min-width: 120px;
}

.btn-remove {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
}

.error { color: #ef4444; }
.success { color: #22c55e; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #4A90D9;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding: 1rem;
        border-radius: 0 0 0 20px;
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger {
        display: block;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
}

/* Inner pages common */
.inner-page {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.inner-page h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #1e293b;
}

/* Generate page */
.generate-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.generate-form input, .generate-form select, .generate-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
}

.generate-form button {
    align-self: center;
}

/* Template page */
.template-filter {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.template-filter button {
    background: #e2e8f0;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s;
}

.template-filter button.active, .template-filter button:hover {
    background: #4A90D9;
    color: #fff;
}

/* Collaborate page */
.collab-room {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.collab-chat {
    flex: 1;
    min-width: 250px;
}

.collab-chat textarea {
    width: 100%;
    height: 200px;
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid #ddd;
}

/* Translate page */
.translate-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.translate-options select {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid #ddd;
}

/* Search bar */
.search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.search-bar input {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid #ddd;
    width: 100%;
    max-width: 400px;
    font-size: 1rem;
}