<!-- Footer -->
<footer class="main-footer custom-footer">

    <div class="footer-content">

        <!-- Bagian Atas -->
        <div class="footer-top">

            <!-- Identitas -->
            <div class="footer-brand">

                <div class="footer-logo">
                    <i class="fas fa-book-open"></i>
                </div>

                <div class="footer-brand-text">
                    <h4>MAS Asy Syarif</h4>

                    <p>
                        Sistem Informasi Perpustakaan
                    </p>
                </div>

            </div>


            <!-- Informasi Kontak -->
            <div class="footer-info">

                <a href="mailto:mas.asysyarif@gmail.com"
                   class="footer-item">

                    <div class="footer-item-icon">
                        <i class="fas fa-envelope"></i>
                    </div>

                    <div>
                        <span>Email</span>
                        <strong>
                            mas.asysyarif@gmail.com
                        </strong>
                    </div>

                </a>


                <a href="tel:07527446084"
                   class="footer-item">

                    <div class="footer-item-icon">
                        <i class="fas fa-phone-alt"></i>
                    </div>

                    <div>
                        <span>Telepon Sekolah</span>
                        <strong>
                            (0752) 7446084
                        </strong>
                    </div>

                </a>

            </div>

        </div>


        <!-- Garis -->
        <div class="footer-divider"></div>


        <!-- Bagian Bawah -->
        <div class="footer-bottom">

            <div>
                <i class="fas fa-school"></i>
                MAS Asy Syarif
            </div>

            <div>
                &copy; <?= date('Y') ?>
                <span>•</span>
                Sistem Informasi Perpustakaan
            </div>

        </div>

    </div>

</footer>


<style>

/* =====================================================
   CUSTOM FOOTER
===================================================== */

.custom-footer {

    margin-left: 0 !important;
    margin-right: 0 !important;

    padding: 0 !important;

    width: 100% !important;

    background: #ffffff;

    border-top: 1px solid #e5e7eb;

    box-shadow:
        0 -4px 20px rgba(0, 0, 0, 0.04);

}


/* Container Footer */

.footer-content {

    width: 100%;

    padding: 25px 30px 12px 30px;

}


/* =====================================================
   BAGIAN ATAS
===================================================== */

.footer-top {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}


/* =====================================================
   BRAND
===================================================== */

.footer-brand {

    display: flex;

    align-items: center;

    gap: 15px;

}


/* Logo */

.footer-logo {

    width: 52px;

    height: 52px;

    min-width: 52px;

    border-radius: 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: linear-gradient(
        135deg,
        #007bff,
        #0056d6
    );

    color: white;

    font-size: 22px;

    box-shadow:
        0 7px 18px rgba(0, 123, 255, 0.22);

}


/* Nama Sekolah */

.footer-brand-text h4 {

    margin: 0;

    font-size: 17px;

    font-weight: 700;

    color: #343a40;

}


/* Deskripsi */

.footer-brand-text p {

    margin: 4px 0 0;

    font-size: 13px;

    color: #8a94a6;

}


/* =====================================================
   INFORMASI
===================================================== */

.footer-info {

    display: flex;

    align-items: center;

    gap: 12px;

}


/* Item */

.footer-item {

    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 210px;

    padding: 10px 14px;

    border-radius: 12px;

    background: #f8f9fa;

    border: 1px solid #edf0f3;

    text-decoration: none !important;

    transition: all 0.25s ease;

}


/* Icon */

.footer-item-icon {

    width: 35px;

    height: 35px;

    min-width: 35px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background: #eaf3ff;

    color: #007bff;

    font-size: 14px;

}


/* Label */

.footer-item span {

    display: block;

    font-size: 10px;

    color: #9aa0a6;

    margin-bottom: 2px;

}


/* Value */

.footer-item strong {

    display: block;

    font-size: 12px;

    font-weight: 600;

    color: #495057;

}


/* Hover */

.footer-item:hover {

    background: #007bff;

    border-color: #007bff;

    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(0, 123, 255, 0.18);

}


.footer-item:hover span,
.footer-item:hover strong {

    color: white;

}


.footer-item:hover .footer-item-icon {

    background: rgba(255,255,255,0.18);

    color: white;

}


/* =====================================================
   GARIS
===================================================== */

.footer-divider {

    width: 100%;

    height: 1px;

    background: #edf0f3;

    margin-top: 22px;

}


/* =====================================================
   BAGIAN BAWAH
===================================================== */

.footer-bottom {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-top: 10px;

    font-size: 11px;

    color: #9aa0a6;

}


.footer-bottom i {

    color: #007bff;

    margin-right: 5px;

}


.footer-bottom span {

    margin: 0 6px;

    color: #d1d5db;

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .footer-top {

        flex-direction: column;

        align-items: flex-start;

    }

    .footer-info {

        width: 100%;

        flex-wrap: wrap;

    }

}


@media (max-width: 600px) {

    .footer-content {

        padding: 20px 15px 10px;

    }

    .footer-info {

        flex-direction: column;

        align-items: stretch;

    }

    .footer-item {

        width: 100%;

    }

    .footer-bottom {

        flex-direction: column;

        gap: 5px;

        text-align: center;

    }

}

</style>


<!-- Scripts -->
<script src="<?= base_url('plugins/jquery/jquery.min.js') ?>"></script>

<script src="<?= base_url('plugins/bootstrap/js/bootstrap.bundle.min.js') ?>"></script>

<script src="<?= base_url('plugins/select2/js/select2.min.js') ?>"></script>

<script src="<?= base_url('plugins/datatables/jquery.dataTables.min.js') ?>"></script>

<script src="<?= base_url('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js') ?>"></script>

<script src="<?= base_url('plugins/sweetalert2/sweetalert2.min.js') ?>"></script>

<script src="<?= base_url('dist/js/adminlte.min.js') ?>"></script>