/* ================= Buttons ================= */
.btn-tile {
    display: block;
    background: #e8412c;
    color: #fff;
    font-weight: 700;
    text-align: center;
    padding: 22px 10px;
    border: none;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.2s ease;
}

    .btn-tile:hover {
        background: #c9331f;
        color: #fff;
    }

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 17px;
    background: #343a40;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}

    .btn-back:hover {
        background: #087f43;
        color: #fff;
    }

/* ================= Month cards (FormIVMonths page) ================= */
.month-card {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 125px;
    padding: 15px;
    background: #edf2f5;
    color: #202638;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    border: 1px solid #d7e0e7;
    border-radius: 7px;
    text-decoration: none;
    overflow-wrap: anywhere;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

    .month-card:hover {
        background: #e0f0e6;
        border-color: #008c45;
        color: #006b35;
    }

/* ================= Modal ================= */
.details-modal {
    border-radius: 6px;
}

.btn-close-custom {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
}

/* ================= Page layout ================= */
.statutory-page {
    width: 100%;
    max-width: 1400px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 22px 28px 40px;
}

.statutory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.month-heading {
    margin: 0;
    color: #252a34;
    font-size: 23px;
    font-weight: 600;
    text-align: right;
}

/* ================= File grid (sab cards same size, equal gap) ================= */
.file-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, 170px);
    gap: 22px; /* rows aur columns dono ke beech same gap */
    justify-content: center; /* cards beech me */
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
}

.file-card {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    width: 170px; /* sab cards ka same size */
    height: 125px;
    margin: 0;
    padding: 15px;
    background: #edf2f5;
    color: #202638;
    border: 1px solid #d7e0e7;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

    .file-card:hover {
        background: #e0f0e6;
        border-color: #008c45;
        color: #006b35;
        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.09);
    }

.file-card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
}

.file-card-icon {
    display: block;
    height: 20px;
    line-height: 20px;
    font-size: 20px;
    color: #087f43;
}

/* ================= No files ================= */
.no-files {
    padding: 45px 20px;
    text-align: center;
    color: #6c757d;
    background: #f7f9fa;
    border: 1px dashed #ced6dc;
    border-radius: 8px;
}

    .no-files i {
        display: block;
        margin-bottom: 12px;
        font-size: 36px;
    }

    .no-files p {
        margin: 0;
        font-size: 15px;
    }

/* ================= Responsive ================= */
@media (max-width: 1100px) {
    .statutory-page {
        padding-left: 22px;
        padding-right: 22px;
    }
}

@media (max-width: 768px) {
    .statutory-page {
        padding: 20px 16px 30px;
    }

    .file-grid {
        grid-template-columns: repeat(auto-fill, 140px);
        gap: 14px;
    }

    .file-card {
        width: 140px;
        height: 115px;
        padding: 10px;
    }

    .file-card-title {
        font-size: 13px;
    }

    .month-heading {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .statutory-page {
        padding: 18px 12px 25px;
    }

    .statutory-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 20px;
    }

    .month-heading {
        font-size: 19px;
        text-align: left;
    }

    .file-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .file-card {
        width: 100%;
        height: 105px;
        padding: 8px;
        gap: 8px;
    }

    .file-card-title {
        min-height: 32px;
        font-size: 12px;
    }

    .file-card-icon {
        font-size: 18px;
    }
}
