/* Grundläggande återställning */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent; /* Tar bort blå blinkning vid touch på mobil */
}

body {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    background-attachment: fixed;
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Appens Huvudbehållare (Mobile-first) */
.app-container {
    width: 100%;
    max-width: 450px; /* Perfekt för mobiler, ser bra ut centrerat på desktop */
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 10px;
}

h1 {
    font-size: 28px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 8px;
}

.date-text {
    font-size: 14px;
    color: #7f8c8d;
    text-transform: capitalize;
    font-weight: 500;
}

/* Kortdesign */
main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.card h2 {
    font-size: 16px;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.card-text {
    font-size: 20px;
    line-height: 1.5;
    color: #2c3e50;
    font-weight: 600;
}

/* Knapp (Stor och Touch-vänlig) */
.primary-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 18px 24px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    touch-action: manipulation;
}

.primary-btn:active {
    transform: scale(0.96);
    box-shadow: 0 4px 10px rgba(118, 75, 162, 0.2);
}

.btn-icon {
    font-size: 20px;
    transition: transform 0.5s ease;
}

.primary-btn.animating .btn-icon {
    transform: rotate(360deg);
}

/* Animationer */
.fade-up {
    animation: fadeUpAnim 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Klass för att tona ut/in text smidigt vid uppdatering */
.fade-content {
    opacity: 0;
    transform: scale(0.98);
}
