:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

.tool-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.tool-header {
    text-align: center;
    margin-bottom: 32px;
}

.tool-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.tool-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.reader-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

.drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
    transition: all 0.2s ease;
    position: relative;
}

.drop-zone:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drop-icon {
    width: 64px;
    height: 64px;
    background: #dbeafe;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.drop-icon i {
    width: 32px;
    height: 32px;
}

.drop-content h3 {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 6px;
}

.drop-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Result Area */
.result-area {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.image-preview-container {
    max-width: 250px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.image-preview-container img {
    width: 100%;
    height: auto;
    display: block;
}

.decoded-result-card {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    box-sizing: border-box;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}

.status-badge.success {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.error {
    background: #fee2e2;
    color: #991b1b;
}

.decoded-content-box {
    margin-bottom: 24px;
}

.decoded-content-box label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.decoded-text {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 14px;
    font-family: monospace;
    font-size: 15px;
    word-break: break-all;
    color: var(--text-main);
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-outline {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-main);
}

.btn-outline:hover {
    background: #f1f5f9;
}
