/* ===================================================
   CARD COMPONENT – COMPACTO
   =================================================== */
.action-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid #E8ECF1;
    position: relative;
}
.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.action-card.highlighted {
    outline: 2px solid #22C55E;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.3);
}

.card-img-placeholder {
    width: 100%;
    height: 100px;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid #E8ECF1;
}
.card-img-placeholder img.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.card-img-fallback {
    font-size: 0.7rem;
    color: #94A3B8;
    font-weight: 700;
    text-align: center;
    padding: 8px;
    line-height: 1.2;
}

.card-body {
    padding: 10px 12px 12px 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-date {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    color: #fff;
    background: var(--color-blue-medium);
    padding: 2px 7px;
    border-radius: 20px;
    margin-bottom: 6px;
    align-self: flex-start;
    letter-spacing: 0.2px;
}
.card-title {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-blue-dark);
    margin-bottom: 4px;
    line-height: 1.25;
}
.card-summary {
    font-size: 0.68rem;
    color: #64748B;
    margin-bottom: 8px;
    flex-grow: 1;
    line-height: 1.35;
}
.card-btn {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.62rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: all 0.25s ease;
}

/* THEME SPECIFIC CARD BUTTONS */
.theme-agosto .card-btn { background: var(--color-agosto-green); }
.theme-setembro .card-btn { background: var(--color-setembro-blue); }
.theme-outubro .card-btn { background: var(--color-outubro-purple); }
.theme-novembro .card-btn { background: var(--color-novembro-orange); }
.theme-dezembro .card-btn { background: var(--color-dezembro-green); }
.theme-ambiental .card-btn { background: var(--color-ambiental-green); }

/* ===================================================
   AMBIENTAL CARD
   =================================================== */
.ambiental-card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border-top: 3px solid var(--color-ambiental-green);
    display: flex;
    flex-direction: column;
}
.ambiental-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.ambiental-card h4 {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    color: var(--color-blue-dark);
    margin-bottom: 4px;
    font-weight: 700;
}
.ambiental-card p {
    font-size: 0.68rem;
    color: #64748B;
    line-height: 1.3;
}

/* ===================================================
   MODAL – COM IMAGEM E BOTÃO DE IMPRESSÃO
   =================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 15px;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-card {
    background: white;
    width: 92%;
    max-width: 620px;
    max-height: 92vh;
    border-radius: 16px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
}
.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.3rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.modal-header-banner {
    padding: 22px 20px 16px 20px;
    color: white;
    background: var(--color-blue-dark);
}
.modal-month-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 6px;
}
.modal-header-banner h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
}

/* Imagem no modal */
.modal-image-wrap {
    padding: 0;
    text-align: center;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}
.modal-image-wrap img#modal-image {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Data info no modal */
.modal-date-info-wrap {
    padding: 10px 20px 0 20px;
}
.modal-date-info {
    display: inline-block;
    background: #EFF6FF;
    color: var(--color-blue-medium);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #BFDBFE;
}

.modal-body {
    padding: 16px 20px 20px 20px;
}
.modal-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    background: #F8FAFC;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.82rem;
}
.modal-section {
    margin-bottom: 18px;
}
.modal-section h3 {
    font-family: var(--font-heading);
    color: var(--color-blue-dark);
    font-size: 0.95rem;
    margin-bottom: 8px;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 4px;
}
.modal-list {
    padding-left: 18px;
    list-style-type: disc;
}
.modal-list li {
    margin-bottom: 4px;
    font-size: 0.88rem;
    line-height: 1.4;
}
.checklist-section {
    background: #F0FDF4;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #BBF7D0;
}
.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0 4px 0;
}
.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #22C55E;
    transition: width 0.3s ease;
}
.progress-text {
    font-size: 0.78rem;
    font-weight: 700;
    color: #16A34A;
    display: block;
    margin-bottom: 10px;
}
.modal-checklist-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.88rem;
    cursor: pointer;
}
.modal-checklist-list input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #22C55E;
    cursor: pointer;
}

/* Modal footer */
.modal-footer {
    padding: 12px 20px;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.btn-back {
    background: var(--color-blue-dark);
    color: white;
    padding: 7px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.82rem;
    transition: background 0.2s ease;
}
.btn-back:hover {
    background: #1A5FA8;
}

/* Botão de impressão discreto */
.btn-print {
    background: transparent;
    color: #94A3B8;
    border: 1px solid #E2E8F0;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.btn-print:hover {
    color: #0D3B78;
    border-color: #0D3B78;
    background: #F1F5F9;
}
.btn-print svg {
    width: 13px;
    height: 13px;
}
