@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: #000000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    position: relative;
    overflow-x: hidden;
}

#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.container {
    background: rgba(10, 10, 10, 0.97);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 215, 0, 0.1);
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
}

.header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.1) 100%);
    padding: 30px 35px;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.header-text h1 {
    color: #FFD700;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.header-text p {
    color: #999;
    font-size: 14px;
    font-weight: 500;
}

.content {
    padding: 35px;
}

.editor-section {
    margin-bottom: 25px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.section-icon {
    font-size: 18px;
}

.section-title {
    color: #ddd;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
}

.char-count {
    color: #666;
    font-size: 12px;
    font-weight: 500;
}

textarea {
    width: 100%;
    min-height: 220px;
    background: #050505;
    border: 2px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    color: #e0e0e0;
    padding: 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

textarea::placeholder {
    color: #333;
}

.options-section {
    margin-bottom: 25px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.option-card {
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.option-card:hover {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.option-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #FFD700;
    margin-top: 2px;
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-title {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.option-desc {
    color: #777;
    font-size: 11px;
    font-weight: 500;
}

.action-buttons {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.btn {
    padding: 16px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.btn-icon {
    font-size: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

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

.btn-secondary {
    background: rgba(50, 50, 50, 0.8);
    color: #FFD700;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.btn-secondary:hover {
    background: rgba(70, 70, 70, 0.9);
    border-color: rgba(255, 215, 0, 0.5);
}

.btn-danger {
    background: rgba(50, 50, 50, 0.8);
    color: #ff6b6b;
    border: 2px solid rgba(255, 107, 107, 0.3);
}

.btn-danger:hover {
    background: rgba(70, 70, 70, 0.9);
    border-color: rgba(255, 107, 107, 0.5);
}

.btn:active {
    transform: scale(0.98);
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.stat-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-label {
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.stat-value {
    color: #FFD700;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 4px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.stat-unit {
    color: #555;
    font-size: 11px;
    font-weight: 500;
}

.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
    }

    .header {
        padding: 20px 20px;
    }

    .logo {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }

    .header-text h1 {
        font-size: 22px;
    }

    .content {
        padding: 25px 20px;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    textarea {
        min-height: 180px;
    }
}
