@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@500;600&display=swap');

:root {
    --primary: #10b981;
}

body {
    font-family: 'Inter', system_ui, sans-serif;
}

.font-display {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
}

.premium-card {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.nav-active {
    background-color: #10b981;
    color: white !important;
    border-radius: 9999px;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.modern-table {
    border-radius: 16px;
    overflow: hidden;
}

.set-input {
    transition: all 0.1s ease;
}

.gym-gradient {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toast {
    animation: slideUpToast 0.3s ease forwards;
}

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

.exercise-row {
    background-color: #18181b;
    border: 1px solid #3f3f46;
    border-radius: 16px;
    padding: 12px;
}

@media (min-width: 640px) {
    .exercise-row { padding: 16px; }
}

.nav-item {
    transition: all 0.1s ease;
}

.stat-value {
    font-variant-numeric: tabular-nums;
}

.workout-row:hover {
    background-color: #27272a;
}

.calendar-day {
    transition: all 0.1s ease;
}

.calendar-day.has-workout {
    background-color: #10b981;
    color: white;
    font-weight: 600;
}

.calendar-day:hover {
    background-color: #3f3f46;
}

.modal {
    animation: modalPop 0.2s ease forwards;
}

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

.insight-card {
    transition: all 0.2s ease;
}

/* Förhindrar att mobila webbläsare zoomar in automatiskt vid fokus i formulärfält */
@media (max-width: 640px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Bottennavigering (mobil) */
.bottom-nav-item {
    transition: all 0.15s ease;
}

.bottom-nav-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #71717a;
    transition: all 0.15s ease;
}

.bottom-nav-label {
    color: #71717a;
    transition: color 0.15s ease;
}

.bottom-nav-item.bottom-nav-active .bottom-nav-icon-wrap {
    background-color: #10b981;
    color: #ffffff;
}

.bottom-nav-item.bottom-nav-active .bottom-nav-label {
    color: #10b981;
    font-weight: 600;
}