:root {
    --primary-color: #1A6FA6;
    --primary-hover: #145a86;
    --background-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-secondary: #6b7280;
    --success-color: #10b981;
    --error-color: #ef4444;
    --border-radius: 12px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-family: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

header {
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.hidden {
    display: none;
}

/* Search Section */
.input-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.select-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

input,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

button {
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    font-family: var(--font-family);
}

button:hover {
    background-color: var(--primary-hover);
}

button:active {
    transform: scale(0.98);
}

/* Result Section */
#result-section {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    animation: fadeIn 0.5s ease;
}

.success-message {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.error-message {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Upload Section */
.upload-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.file-drop-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 2rem;
    border: 2px dashed #cbd5e1;
    border-radius: var(--border-radius);
    transition: 0.2s;
    background-color: #f8fafc;
    cursor: pointer;
}

.file-drop-area:hover {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

.fake-btn {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.file-msg {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
    opacity: 0;
}

#upload-btn {
    width: 100%;
    margin-top: 1rem;
    background-color: var(--text-main);
}

#upload-btn:hover {
    background-color: black;
}

#upload-status {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

footer {
    text-align: center;
    color: #9ca3af;
    font-size: 0.8rem;
    margin-top: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progressive Steps */
.form-step {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: fadeIn 0.5s ease forwards;
}

.hidden-step {
    display: none;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

/* Match Cards */
.matches-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.match-card {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-card:hover {
    border-color: var(--primary-color);
    background-color: #f9fafb;
    transform: translateY(-2px);
}

.match-card.selected {
    border-color: var(--primary-color);
    background-color: #eff6ff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.match-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1.05rem;
}

.match-similarity {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Confirmation Section */
#confirmation-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
    text-align: center;
}

#confirmation-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.confirmation-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-correct,
.btn-incorrect {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-family);
}

.btn-correct {
    background-color: var(--success-color);
    color: white;
}

.btn-correct:hover {
    background-color: #059669;
    transform: scale(1.05);
}

.btn-incorrect {
    background-color: var(--error-color);
    color: white;
}

.btn-incorrect:hover {
    background-color: #dc2626;
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .select-group {
        grid-template-columns: 1fr;
    }

    .search-row {
        grid-template-columns: 1fr;
    }
}