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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
}

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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(90deg, #f39c12, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #f39c12;
}

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

/* Hero */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

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

/* Sections */
section {
    padding: 40px 0;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #f39c12;
}

/* Type Switcher */
.type-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.type-btn {
    padding: 12px 24px;
    border: 2px solid #f39c12;
    background: transparent;
    color: #f39c12;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.type-btn:hover, .type-btn.active {
    background: #f39c12;
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

/* Config Form */
.config-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    font-size: 0.9rem;
    color: #ccc;
}

.form-group input, .form-group select {
    padding: 10px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #2a2a3e;
    color: #fff;
    font-size: 1rem;
}

.form-group input[type="range"] {
    padding: 0;
}

/* Buttons */
.btn-primary {
    padding: 12px 30px;
    background: linear-gradient(90deg, #f39c12, #e74c3c);
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.5);
}

.btn-secondary {
    padding: 12px 30px;
    background: transparent;
    color: #f39c12;
    border: 2px solid #f39c12;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s;
    margin: 5px;
}

.btn-secondary:hover {
    background: #f39c12;
    color: #1a1a2e;
}

.btn-icon {
    padding: 8px 16px;
    background: #2a2a3e;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    margin: 5px;
}

.btn-icon:hover {
    background: #f39c12;
    color: #1a1a2e;
}

/* Result Area */
.result-area {
    background: #2a2a3e;
    border-radius: 12px;
    padding: 20px;
    min-height: 150px;
    margin-bottom: 20px;
    border: 1px solid #444;
}

.result-area .placeholder {
    color: #888;
    text-align: center;
    padding: 40px 0;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: transparent;
    color: #ccc;
    border: 1px solid #444;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active, .tab-btn:hover {
    background: #f39c12;
    color: #1a1a2e;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

#historyList, #favoritesList {
    list-style: none;
}

#historyList li, #favoritesList li {
    padding: 10px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Admin */
.login-form, .settings-form {
    max-width: 400px;
    margin: 0 auto;
}

.alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.alert-error {
    background: #e74c3c;
    color: #fff;
}

.alert-success {
    background: #2ecc71;
    color: #fff;
}

.admin-list {
    list-style: none;
}

.admin-list li {
    padding: 10px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-delete {
    color: #e74c3c;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #e74c3c;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-delete:hover {
    background: #e74c3c;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background: #1a1a2e;
        border-radius: 8px;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    }

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

    .hamburger {
        display: block;
    }

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

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

    .type-switcher {
        gap: 5px;
    }

    .type-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

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

/* About & Help pages */
.about-page, .help-page {
    padding: 40px 20px;
}

.about-page h1, .help-page h1 {
    font-size: 2.5rem;
    color: #f39c12;
    margin-bottom: 20px;
}

.about-page p, .help-page p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
}

.help-page ul {
    list-style: disc;
    padding-left: 20px;
    color: #ccc;
}

.help-page ul li {
    margin-bottom: 10px;
}