@import url('https://fonts.googleapis.com/css2?family=Spline+Sans:wght@400;700&display=swap');

:root {
    --primary: #25f48c; /* 영자's Habit Green */
    --secondary: #58a6ff; /* Ocean Blue for contrast */
    --bg: #0f1215;
    --card: #1c2128;
    --text: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Spline Sans', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    background: radial-gradient(at 0% 0%, rgba(37, 244, 140, 0.12) 0px, transparent 50%),
                radial-gradient(at 50% 0%, rgba(88, 166, 255, 0.08) 0px, transparent 50%),
                radial-gradient(at 100% 0%, rgba(255, 0, 80, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
}

#app {
    width: 100%;
    max-width: 500px;
    padding: 3rem;
    background: #161b22; /* Solid background */
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

header h1 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 0px;
}

header p { opacity: 0.6; margin-bottom: 2rem; }

.upload-area {
    border: 2px dashed var(--border);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(37, 244, 140, 0.05);
}

#result {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.data-card {
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.category-badge { background: var(--primary); color: #000; padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.7rem; font-weight: bold; }
.date-text { font-size: 0.8rem; opacity: 0.5; }
.amount-text { font-size: 2.5rem; margin: 0.5rem 0; color: var(--primary); }
.merchant-name { font-size: 1.1rem; opacity: 0.9; display: flex; align-items: center; gap: 0.5rem; }

.approve-btn {
    width: 100%; margin-top: 1.5rem; background: transparent; border: 1px solid var(--primary);
    color: var(--primary); padding: 0.8rem; border-radius: 12px; cursor: pointer;
    transition: all 0.2s ease;
}

.approve-btn:hover { background: var(--primary); color: #000; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slide-up { animation: slideUp 0.5s ease-out forwards; }

.loading { color: var(--primary); font-weight: bold; animation: pulse 1.5s infinite; }

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

@keyframes scanMove {
    0% { top: 0; }
    100% { top: 100%; }
}

.hidden { display: none; }
