/* =============================================
   CARDS CLICAVEIS DO DASHBOARD
   ============================================= */

.card {
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
    /* Tamanho padrao confortavel */
    padding: 24px 20px;
    min-height: 110px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.card:active::after {
    width: 300px;
    height: 300px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card:active {
    transform: translateY(-2px);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
    min-width: 0;
}

.card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color, #2c3e50);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-label {
    font-size: 13px;
    color: var(--text-secondary, #6c757d);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =============================================
   DASHBOARD GRID - MOBILE FIRST
   ============================================= */

/* Mobile: 1 coluna (card inteiro, sem apertar) */
.cards-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 16px !important;
    margin-bottom: 24px;
}

/* Mobile medio (>= 480px): 2 colunas */
@media (min-width: 480px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        padding: 16px !important;
    }
}

/* Tablet (>= 768px): 2 colunas largas */
@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        padding: 24px !important;
    }
}

/* Desktop pequeno (>= 992px): 4 colunas */
@media (min-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 24px !important;
        padding: 24px 0 !important;
    }
}

/* Cards no mobile: confortaveis */
@media (max-width: 479px) {
    .card {
        padding: 20px 18px;
        min-height: 90px;
        gap: 14px;
        border-radius: 14px;
    }

    .card-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
        border-radius: 10px;
    }

    .card-value {
        font-size: 22px;
    }

    .card-label {
        font-size: 12px;
    }
}

/* =============================================
   FAB - FLOATING ACTION BUTTON (MOBILE-FIRST)
   ============================================= */

.fab-container {
    position: fixed;
    bottom: 28px;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.fab-checklist {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: conic-gradient(from 0deg at 50% 50%, #25D366 0deg, #128C7E 270deg, #25D366 360deg);
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 16px 48px rgba(37, 211, 102, 0.45),
        0 0 0 4px rgba(37, 211, 102, 0.2);
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    position: relative;
    gap: 2px;
}

.fab-checklist span {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1;
    text-transform: uppercase;
}

.fab-checklist:hover {
    transform: scale(1.18) rotate(180deg);
    box-shadow:
        0 24px 64px rgba(37, 211, 102, 0.6),
        0 0 0 8px rgba(37, 211, 102, 0.25);
}

.fab-checklist:active {
    transform: scale(1.05) rotate(90deg);
}

.fab-checklist::before {
    content: 'Novo Checklist';
    position: absolute;
    top: -42px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.fab-checklist:hover::before { opacity: 1; }

@media (min-width: 768px) {
    .fab-container {
        left: auto;
        right: 32px;
        width: auto;
    }
}

@media (max-width: 360px) {
    .fab-checklist {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }
}

/* =============================================
   OS RECENTES - padding para nao sobrepor FAB
   ============================================= */

.recent-section {
    padding-bottom: 100px;
}
