:root {
    --bg: #f5f7fb;
    --card-bg: #ffffff;
    --primary: #2563eb;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --font: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    font-family: var(--font);
    padding: 30px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-header {
    text-align: center;
    margin-bottom: 25px;
}

.app-title {
    color: var(--text-dark);
    font-size: 32px;
    font-weight: 700;
}

.subtitle {
    color: var(--text-light);
    margin-top: 5px;
}

.app-container {
    width: 100%;
    max-width: 600px;
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.input-field {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid #d1d5db;
    font-size: 16px;
    outline: none;
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(37, 99, 235, 0.3);
}

.primary-btn {
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.primary-btn:hover {
    background: #1e50c4;
}

.output-box {
    padding: 20px;
    min-height: 180px;
    text-align: center;
}

.placeholder {
    color: var(--text-light);
}

/* Card UI */
.info-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: fadeIn 0.35s ease-in-out;
}

.info-card h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}

.stat-box {
    padding: 18px;
    border-radius: var(--radius);
    background: #f0f4ff;
    text-align: center;
}

.stat-box p {
    margin-top: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
