:root {
    --bg-color: #0f1115;
    --card-bg: #1a1d23;
    --text-primary: #e0e6ed;
    --text-secondary: #94a3b8;
    --accent: #25D366; /* WhatsApp Green */
    --accent-hover: #128C7E;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --border: #2d323b;
    --input-bg: #2d323b;
    --log-bg: #000000;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.container {
    width: 100%;
    max-width: 1200px;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-weight: 600;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #25D366, #34B7F1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    resize: vertical;
    transition: all 0.2s;
}

textarea#numbers {
    height: 300px;
    font-family: 'JetBrains Mono', monospace;
}

textarea#message {
    height: 120px;
}

textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}

/* Buttons */
.controls {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.2);
}

/* Logs */
.log-section {
    display: flex;
    flex-direction: column;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.log-header h2 {
    font-size: 1.25rem;
    font-weight: 500;
}

.btn-clear {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-clear:hover {
    color: var(--text-primary);
}

.log-container {
    flex-grow: 1;
    background: var(--log-bg);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    overflow-y: auto;
    height: 500px; /* Fixed height for scroll */
    border: 1px solid var(--border);
}

.log-entry {
    margin-bottom: 0.5rem;
    line-height: 1.4;
    word-break: break-all;
}

.log-entry.info { color: #60a5fa; }
.log-entry.success { color: #4ade80; }
.log-entry.error { color: #f87171; }
.log-entry.warning { color: #fbbf24; }
