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

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

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

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

.container {
    background: rgba(10, 10, 10, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    width: 100%;
    max-width: 850px;
    border: 1px solid #1a1a1a;
    position: relative;
    z-index: 1;
}

.header {
    background: #0f0f0f;
    padding: 20px 28px;
    border-bottom: 1px solid #1a1a1a;
    border-radius: 12px 12px 0 0;
}

.header h1 {
    color: #ffd700;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header p {
    color: #666;
    font-size: 13px;
    margin-top: 4px;
    font-weight: 400;
}

.content {
    padding: 24px 28px 28px;
}

.section-title {
    color: #999;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.input-section, .output-section {
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    min-height: 180px;
    background: #050505;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    color: #ddd;
    padding: 14px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s;
}

textarea:focus {
    outline: none;
    border-color: #ffd700;
}

textarea::placeholder {
    color: #333;
}

.options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.option {
    background: #0f0f0f;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.15s;
}

.option:hover {
    background: #151515;
    border-color: #2a2a2a;
}

.option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #ffd700;
}

.option label {
    margin: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #999;
}

.button-group {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

button span {
    display: block;
}

.btn-primary {
    background: #ffd700;
    color: #000;
}

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

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

.btn-secondary {
    background: #1a1a1a;
    color: #ddd;
}

.btn-secondary:hover {
    background: #222;
}

.btn-danger {
    background: #1a1a1a;
    color: #ff6b6b;
}

.btn-danger:hover {
    background: #222;
}

.stats {
    background: #0f0f0f;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid #1a1a1a;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    text-align: center;
}

.stat-item {
    padding: 0 12px;
    border-right: 1px solid #1a1a1a;
}

.stat-item:last-child {
    border-right: none;
}

.stat-label {
    color: #555;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 500;
}

.stat-value {
    color: #ffd700;
    font-size: 22px;
    font-weight: 700;
}

.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: #0f0f0f;
    color: #4ade80;
    padding: 14px 20px;
    border-radius: 8px;
    border: 1px solid #1a1a1a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 1000;
    font-weight: 500;
    font-size: 14px;
}

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

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

    .header h1 {
        font-size: 18px;
    }

    .content {
        padding: 20px;
    }

    .button-group {
        grid-template-columns: 1fr;
    }

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

    .stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid #1a1a1a;
        padding: 12px 0;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    textarea {
        min-height: 150px;
    }
}
