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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

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

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-links li a:hover, .nav-links li a.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #667eea;
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0 0 50px 50px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #667eea;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Features */
.features {
    padding: 60px 0;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #667eea;
}

.card p {
    color: #666;
}

/* Suggestions */
.suggestions {
    padding: 40px 0;
    background: white;
    border-radius: 30px;
    margin: 20px 0;
}

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

.suggestion-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.suggestion-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.suggestion-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.5);
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

footer a {
    color: #667eea;
    text-decoration: none;
}

/* Admin */
.admin-section {
    padding: 60px 20px;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
}

.login-form button {
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.login-form button:hover {
    opacity: 0.9;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-item h3 {
    color: #667eea;
}

.btn-delete {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-delete:hover {
    background: #e84118;
}

.error {
    color: #ff4757;
    text-align: center;
}

/* Create Page */
.create-section {
    padding: 60px 20px;
}

.create-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #667eea;
    outline: none;
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-generate {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Preview */
.preview-section {
    padding: 40px 20px;
}

.preview-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.preview-box h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.preview-content {
    min-height: 200px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1.8;
}

.export-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-export {
    padding: 10px 25px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-export:hover {
    transform: translateY(-2px);
}

.btn-txt { background: #74b9ff; color: white; }
.btn-pdf { background: #ff7675; color: white; }
.btn-md { background: #00b894; color: white; }

/* History */
.history-section {
    padding: 60px 20px;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.history-item {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.history-item:hover {
    transform: translateY(-5px);
}

.history-item h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.history-item p {
    color: #666;
    margin-bottom: 10px;
}

.history-item .btn-delete {
    margin-top: 10px;
}

/* About */
.about-section {
    padding: 60px 20px;
    text-align: center;
}

.about-section h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #667eea;
}

.about-section p {
    max-width: 700px;
    margin: 0 auto 20px;
    color: #555;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-radius: 0 0 20px 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .export-buttons {
        flex-direction: column;
    }

    .admin-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}