@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --secondary-color: #64748b;
    --background-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.description {
    color: var(--secondary-color);
    font-size: 0.95rem;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.description ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.description a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

/* Input Area */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Captcha */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-img {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

.captcha-input {
    width: 150px !important;
}

/* Buttons */
.btn-primary {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0;
}

/* Result & Log */
.log-box {
    background: #1e1e1e;
    color: #00ff00;
    font-family: monospace;
    padding: 1rem;
    border-radius: 6px;
    height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    margin-bottom: 1rem;
    border: 1px solid #333;
}

.result-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.brand-highlight {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}


.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: bold;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.hidden {
    display: none;
}

.feedback-hint {
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

/* Manual Analysis Styles */
.manual-analysis {
    background: #f0fdf4; /* Light green */
    border: 1px solid #bbf7d0;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.manual-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin: 1.5rem 0;
}

.manual-divider::before,
.manual-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.manual-divider:not(:empty)::before {
    margin-right: .5em;
}

.manual-divider:not(:empty)::after {
    margin-left: .5em;
}

.manual-highlight {
    color: #16a34a; /* Greenish highlight */
    font-weight: 700;
    font-size: 1.1rem;
}