* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SolaimanLipi', 'Noto Serif Bengali', Arial, sans-serif;
}

@font-face {
    font-family: 'SolaimanLipi';
    src: local('SolaimanLipi');
}

body {
    background-color: #f8f9fa;
    color: #333;
    text-align: center;
    overflow-x: hidden;
}

/* Header Navbar */
.hero-header {
    background: #ffffff;
    padding: 12px 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
}

.site-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.menu-btn {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: #1e3c72;
    cursor: pointer;
    display: block !important;
    padding: 5px 10px;
}

.menu-btn:hover {
    color: #e63946;
}

/* Sidebar Menu */
.side-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.35s ease-in-out;
    padding-top: 60px;
    text-align: left;
}

.side-menu.active {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.2rem;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
}

.menu-links {
    display: flex;
    flex-direction: column;
}

.menu-links a {
    padding: 16px 25px;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2b2b2b;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-links a i {
    width: 20px;
    color: #1e3c72;
}

.menu-links a:hover {
    background-color: #f0f4f9;
    color: #e63946;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    display: none;
}

.menu-overlay.active {
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1000px;
    margin: 25px auto;
    padding: 0 15px;
}

/* Slideshow */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 350px;
    margin: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    background-color: #fff;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f0f0f0;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

.action-zone {
    margin-top: 30px;
}

.btn-admission {
    display: inline-block;
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background-color: #e63946;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-admission:hover {
    background-color: #d62828;
    transform: translateY(-2px);
}

/* Form Styling */
.form-card {
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.login-card {
    max-width: 450px;
    margin: 40px auto;
}

.form-card h2 {
    text-align: center;
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
}

.form-group input[type="file"] {
    padding: 7px;
    background: #fafafa;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1e3c72;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-submit {
    flex: 1;
    padding: 12px;
    background-color: #1e3c72;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: #152a52;
}

.btn-back {
    flex: 1;
    padding: 12px;
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

/* Admin Panel Table Styling */
.admin-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-header h2 {
    color: #1e3c72;
    font-size: 1.4rem;
}

.btn-clear {
    background: #e63946;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 5px;
}

.btn-logout {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.admin-table th, .admin-table td {
    padding: 10px 8px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 0.85rem;
}

.admin-table th {
    background-color: #1e3c72;
    color: #fff;
}

.col-name {
    min-width: 160px;
}

.student-img-thumb {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
}

.action-icons {
    display: flex;
    gap: 8px;
    font-size: 1.1rem;
    align-items: center;
}

.action-icons i {
    cursor: pointer;
}

.fa-pen-to-square { color: #2a5298; }
.fa-file-invoice { color: #28a745; }
.fa-trash { color: #dc3545; }

/* Status Badges & Buttons */
.badge-pending { background: #ffc107; color: #000; padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; }
.badge-approved { background: #28a745; color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; }
.badge-canceled { background: #dc3545; color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; }

.btn-approve { background: #28a745; color: #fff; border: none; padding: 4px 8px; border-radius: 4px; cursor: pointer; font-size: 0.75rem; }
.btn-cancel { background: #dc3545; color: #fff; border: none; padding: 4px 8px; border-radius: 4px; cursor: pointer; font-size: 0.75rem; }

/* Professional Invoice Styling */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.invoice-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 95%;
    max-width: 650px;
    position: relative;
    text-align: left;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    border: 1px solid #ddd;
}

.close-invoice {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
}

.close-invoice:hover { color: #000; }

.invoice-top-header {
    text-align: center;
    border-bottom: 2px solid #1e3c72;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.invoice-top-header h2 {
    color: #1e3c72;
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.invoice-top-header p {
    color: #555;
    font-size: 0.95rem;
}

.invoice-body-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.invoice-info-side {
    flex: 1;
}

.invoice-info-side p {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #333;
}

.invoice-img-side img {
    width: 90px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #1e3c72;
}

.invoice-table-box {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 15px;
}

.invoice-table-box th, .invoice-table-box td {
    border: 1px solid #cbd5e1;
    padding: 10px 12px;
    font-size: 0.9rem;
    text-align: left;
}

.invoice-table-box th {
    background-color: #1e3c72;
    color: #fff;
}

.invoice-footer-sign {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 10px;
}

.sign-box {
    border-top: 1px dashed #666;
    width: 180px;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
    padding-top: 5px;
}

/* Mobile Responsive Fixes */
@media screen and (max-width: 768px) {
    .hero-header {
        padding: 10px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .site-logo {
        max-height: 40px;
        width: auto;
    }

    .menu-btn {
        font-size: 1.6rem;
        padding: 5px;
        display: block !important;
    }

    .container {
        width: 100%;
        padding: 0 10px;
        margin: 10px auto;
    }

    .slideshow-container {
        height: 200px !important;
    }

    .form-card, .admin-card {
        padding: 15px 10px;
    }

    .invoice-body-grid {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .slideshow-container {
        height: 160px !important;
    }
}