:root {
    --primary: #2563eb;
    --secondary: #4b5563;
    --danger: #dc2626;
    --success: #16a34a;
    --autoprocess: #ff46ac;
    --bg: #f8fafc;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 900px;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

header h1 { margin: 0 0 0.5rem 0; color: #1e293b; }
header p { margin: 0 0 1.5rem 0; color: #64748b; }

textarea {
    width: 100%;
    height: 160px;
    padding: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: ui-monospace, monospace;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.toolbar {
    display: flex;
    gap: 12px;
    margin: 1.5rem 0;
}

button {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s;
}

button:hover { filter: brightness(90%); }

.btn-primary { background: var(--primary); color: white; }
.btn-secondary { background: var(--secondary); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-autoprocess { background: var(--autoprocess); color: white; }

.status-bar { font-size: 14px; color: #64748b; margin-bottom: 1rem; }

.result-card {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid var(--primary);
    position: relative;
}

.res-meta { font-size: 11px; color: #94a3b8; margin-bottom: 4px; word-break: break-all; }
.res-target { font-size: 13px; font-weight: 500; color: #334155; word-break: break-all; }

.res-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.iqdb-btn {
    display: inline-block;
    background: var(--success);
    color: white;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--danger);
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #b91c1c;
}

.url-link {
    color: var(--primary);
    text-decoration: underline;
}

.url-link:hover {
    color: #1d4ed8;
}
