.card {
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--neutral);
    width: 100%;
    max-width: 25rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    box-shadow: 0 4px 6px -1px var(--shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    color: var(--text-main);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.login-card {
    padding: 2.5rem;
    border-color: var(--primary);
}

.overview-card {
    max-width: 100%;
    background: var(--primary-light);
    align-items: center;
    text-align: left;
    border: none;
}

.overview-card h2 {
    padding: 0 0 1rem 0;
    text-align: center;
}

.overview-details {
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 0.5rem;
    width: 100%;
}

.overview-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.overview-section + .overview-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-dim);
}

.action-card {
    padding: 2rem;
    cursor: pointer;
    border-color: var(--border-dim);
    max-width: none;
}

/* Prevent stuck hover on mobile */
@media (hover: hover) {
    .action-card:hover {
        border-color: var(--primary);
        box-shadow: 0 10px 15px -3px var(--shadow);
    }

    @media (prefers-reduced-motion: no-preference) {
        .action-card:hover {
            transform: translateY(-4px);
        }
    }
}

/* Mobile touch feedback instead of hover */
.action-card:active {
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px var(--shadow);
    transform: scale(0.98);
}

.form-card {
    width: 100%;
    max-width: 56rem;
    align-items: stretch;
    text-align: left;
    padding: 2rem;
}

.form-card-wide {
    max-width: 75rem;
}

.table-card {
    max-width: 100%;
    width: fit-content;
    min-width: 50%;
    padding: 1rem;
    align-items: stretch;
}

.calendar-card {
    max-width: none;
    width: 100%;
    gap: 0;
}

.day-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-dim);
    border-radius: 0.5rem;
    overflow: hidden;
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    z-index: 1;
    position: relative;
    padding: 0;
    gap: 0;
    box-shadow: none;
}

@media (max-width: 600px) {
    .overview-card {
        max-width: 100%;
    }

    .table-card {
        padding: 0.5rem;
    }

    .form-card {
        padding: 0.5rem;
    }
}
