/* =========================================================
   ST. PAUL'S HIGH SCHOOL
   DOCUMENTS PAGE
   ========================================================= */


/* ---------------------------------------------------------
   MAIN SECTION
   --------------------------------------------------------- */

.documents-section {

    width: 100%;

    min-height: 600px;

    padding: 55px 15px 70px;

    background:
        linear-gradient(
            135deg,
            #f4f8ff 0%,
            #ffffff 50%,
            #eef5ff 100%
        );

}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.documents-header {

    text-align: center;

    margin-bottom: 35px;

}


.documents-icon {

    width: 65px;

    height: 65px;

    margin: 0 auto 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #0b3d91;

    color: white;

    border-radius: 50%;

    font-size: 30px;

    box-shadow:
        0 5px 15px rgba(11, 61, 145, 0.25);

}


.documents-header h1 {

    margin: 0;

    color: #0b3d91;

    font-size: 34px;

    font-weight: 700;

}


.documents-header p {

    margin-top: 10px;

    margin-bottom: 0;

    color: #666;

    font-size: 16px;

}


/* ---------------------------------------------------------
   DOCUMENT CARD
   --------------------------------------------------------- */

.documents-card {

    width: 100%;

    background: #ffffff;

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.10);

    border: 1px solid #e5eaf2;

}


/* ---------------------------------------------------------
   TABLE
   --------------------------------------------------------- */

.documents-table {

    width: 100%;

    margin: 0;

}


/* ---------------------------------------------------------
   TABLE HEADER
   --------------------------------------------------------- */

.documents-table thead th {

    background: #0b3d91;

    color: #ffffff;

    border: none;

    padding: 16px 15px;

    font-size: 15px;

    font-weight: 600;

    vertical-align: middle;

}


.documents-table thead th:first-child {

    border-top-left-radius: 14px;

}


.documents-table thead th:last-child {

    border-top-right-radius: 14px;

}


/* ---------------------------------------------------------
   TABLE BODY
   --------------------------------------------------------- */

.documents-table tbody td {

    padding: 16px 15px;

    vertical-align: middle;

    border-color: #e9edf3;

    color: #333;

}


.documents-table tbody tr {

    transition:
        background 0.2s ease,
        transform 0.2s ease;

}


.documents-table tbody tr:hover {

    background: #f5f8ff;

}


/* ---------------------------------------------------------
   SERIAL NUMBER
   --------------------------------------------------------- */

.serial-column {

    width: 90px;

    text-align: center;

    font-weight: 600;

    color: #0b3d91 !important;

}


/* ---------------------------------------------------------
   DESCRIPTION
   --------------------------------------------------------- */

.description-column {

    font-weight: 500;

}


.document-name {

    display: flex;

    align-items: center;

    gap: 12px;

    font-size: 16px;

}


.document-file-icon {

    width: 38px;

    height: 38px;

    min-width: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #eef4ff;

    border-radius: 8px;

    font-size: 20px;

}


/* ---------------------------------------------------------
   ACTION COLUMN
   --------------------------------------------------------- */

.action-column {

    width: 250px;

    text-align: center;

    white-space: nowrap;

}


/* ---------------------------------------------------------
   COMMON BUTTON
   --------------------------------------------------------- */

.view-btn,
.download-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    padding: 8px 14px;

    margin: 2px;

    border-radius: 6px;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition:
        all 0.2s ease;

}


/* ---------------------------------------------------------
   VIEW BUTTON
   --------------------------------------------------------- */

.view-btn {

    background: #0d6efd;

    color: #ffffff;

}


.view-btn:hover {

    background: #0b5ed7;

    color: #ffffff;

    transform: translateY(-1px);

}


/* ---------------------------------------------------------
   DOWNLOAD BUTTON
   --------------------------------------------------------- */

.download-btn {

    background: #198754;

    color: #ffffff;

}


.download-btn:hover {

    background: #146c43;

    color: #ffffff;

    transform: translateY(-1px);

}


/* ---------------------------------------------------------
   EMPTY DOCUMENTS
   --------------------------------------------------------- */

.no-documents {

    text-align: center;

    padding: 55px 20px !important;

    color: #777 !important;

}


.empty-icon {

    font-size: 45px;

    margin-bottom: 10px;

}


.no-documents h5 {

    margin-bottom: 5px;

    color: #555;

    font-weight: 600;

}


.no-documents p {

    margin: 0;

    color: #888;

    font-size: 14px;

}


/* ---------------------------------------------------------
   TABLE BORDERS
   --------------------------------------------------------- */

.documents-table > :not(caption) > * > * {

    border-bottom-width: 1px;

}


/* ---------------------------------------------------------
   MOBILE DEVICES
   --------------------------------------------------------- */

@media (max-width: 768px) {

    .documents-section {

        padding: 40px 10px 55px;

    }


    .documents-header {

        margin-bottom: 25px;

    }


    .documents-header h1 {

        font-size: 28px;

    }


    .documents-header p {

        font-size: 14px;

        padding: 0 10px;

    }


    .documents-icon {

        width: 58px;

        height: 58px;

        font-size: 27px;

    }


    .documents-table {

        font-size: 14px;

    }


    .documents-table thead th {

        padding: 12px 8px;

        font-size: 13px;

    }


    .documents-table tbody td {

        padding: 12px 8px;

    }


    .serial-column {

        width: 55px;

    }


    .action-column {

        width: 180px;

    }


    .document-name {

        gap: 7px;

        font-size: 14px;

    }


    .document-file-icon {

        width: 32px;

        height: 32px;

        min-width: 32px;

        font-size: 17px;

    }


    .view-btn,
    .download-btn {

        padding: 6px 9px;

        font-size: 12px;

    }

}


/* ---------------------------------------------------------
   SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 480px) {

    .documents-section {

        padding: 30px 5px 45px;

    }


    .documents-header h1 {

        font-size: 24px;

    }


    .documents-header p {

        font-size: 13px;

    }


    .documents-table thead th {

        padding: 10px 5px;

        font-size: 12px;

    }


    .documents-table tbody td {

        padding: 10px 5px;

    }


    .serial-column {

        width: 45px;

    }


    .action-column {

        width: 145px;

    }


    .document-name {

        font-size: 13px;

    }


    .document-file-icon {

        display: none;

    }


    .view-btn,
    .download-btn {

        padding: 6px 7px;

        gap: 3px;

        font-size: 11px;

    }

}


/* ---------------------------------------------------------
   VERY SMALL SCREENS
   --------------------------------------------------------- */

@media (max-width: 360px) {

    .btn-text {

        display: none;

    }


    .view-btn,
    .download-btn {

        width: 38px;

        height: 34px;

        padding: 5px;

    }


    .action-column {

        width: 95px;

    }

}