/* Google Font Import for Hind Siliguri */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;700&display=swap');

/* Table Styling */
table {
    width: 30%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

thead th {
    background-color: green;
    color: #fff;
    text-align: left;
    padding: 10px;
    font-size: 16px;
}

tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

tbody tr:nth-child(odd) {
    background-color: #fff;
}

th, td {
    border: 1px solid #ddd;
    padding: 2px;
    text-align: left;
}

/* Highlight rows on hover */
tbody tr:hover {
    background-color: #e6f7ff;
}

/* Page Title Styling */
h2 {
    text-align: center;
    color: green;
    font-size: 24px;
    margin-bottom: 20px;
}



/* Button Styling */
button {
    background-color: #0073aa;
    color: #fff;
    padding: 5px 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 3px;
}

button:hover {
    background-color: #005177;
}





/* Responsive Design */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        display: none;
    }

    td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
    }

    td::before {
        content: attr(data-label);
        font-weight: bold;
        text-transform: capitalize;
        margin-right: 10px;
        color: #0073aa;
    }
}


/* Label Styling */
form label {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-right: 5px;
}

/* Input and Select Styling */
form input[type="text"],
form input[type="number"],
form input[type="date"],
form select {
    padding: 8px;
    font-size: 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: auto;
}

/* Button Styling */
form button {
    background-color: #0073aa;
    color: #fff;
    padding: 5px 5px;
    border: none;
    cursor: pointer;
    font-size: 24px;
    border-radius: 1px;
}

form button:hover {
    background-color: #005177;
}

/* Responsive Design */
@media (max-width: 768px) {
    form {
        flex-direction: column; /* Stack elements vertically on smaller screens */
    }

    form label {
        margin-right: 0;
    }
}


/*
====================================
    New Popup Styles
====================================
*/

/* Fixed button to trigger the popup */
.sst-popup-trigger-btn {
    position: fixed;
    bottom: 8px;
    left: 20px;
    z-index: 1000;
    background-color: #269C53;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    border: none;
}

.sst-popup-trigger-btn:hover {
    background-color: darkgreen;
}

/* The Modal (background) */
.sst-popup-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

/* Modal Content */
.sst-popup-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: fixed;
    left: 20px;
    bottom: -500px; /* Start position outside of screen */
    transition: bottom 0.5s ease-in-out;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    
    /* ### পরিবর্তন ১: এখানে ফন্ট যুক্ত করা হয়েছে ### */
    font-family: 'Hind Siliguri', sans-serif;
}

.sst-popup-modal.active .sst-popup-content {
    bottom: 40px; /* End position on screen */
}


/* The Close Button */
.sst-close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.sst-close-btn:hover,
.sst-close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Popup Form Styling */
.sst-popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Adds space between form elements */
}

.sst-popup-form label {
    font-size: 16px;
    font-weight: normal;
}

.sst-popup-form input[type="text"],
.sst-popup-form input[type="number"],
.sst-popup-form input[type="date"],
.sst-popup-form select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-family: 'Hind Siliguri', sans-serif; /* ইনপুট ফিল্ডেও ফন্ট যুক্ত করা হলো */
}

/* ### পরিবর্তন ২: সাবমিট বাটনের রঙ পরিবর্তন ### */
.sst-popup-form input[type="submit"] {
    background-color: green; /* নীল এর পরিবর্তে সবুজ করা হলো */
    color: #fff;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    width: 100%;
    font-family: 'Hind Siliguri', sans-serif;
}

.sst-popup-form input[type="submit"]:hover {
    background-color: darkgreen; /* হোভারের জন্য গাঢ় সবুজ করা হলো */
}

/* Responsive adjustments for the popup */
@media (max-width: 768px) {
    .sst-popup-content {
        width: calc(100% - 20px);
        left: 10px;
    }
    .sst-popup-modal.active .sst-popup-content {
        bottom: 80px;
    }
    .sst-popup-trigger-btn {
        padding: 12px 20px;
        font-size: 14px;
        bottom: 15px;
        left: 15px;
    }
}