/* General Body Styles */
body {
    font-family: 'Hind Siliguri', sans-serif; /* Modern Bengali font */
    margin: 0;
    padding: 20px;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    max-width: 1000px;
    width: 100%;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Header Date */
center > br + br + br { /* Targeting the date output specifically, better to wrap it in a div */
    font-size: 1.2em;
    font-weight: bold;
    color: #555;
    margin-bottom: 20px;
    display: block;
}

/* Typing Text Area */
#typing-text {
    color: #FFFFFF;
    background-color: #333;
    border: solid 1px #555;
    font-weight: bold;
    text-align: left;
    font-family: 'Consolas', monospace; /* Monospaced font for typing effect */
    font-size: 2.2em;
    padding: 15px;
    height: 100px;
    width: 100%;
    outline: none;
    resize: none;
    box-sizing: border-box;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Buttons */
.button-group {
    margin-bottom: 30px;
}

.call-now-button {
    font-size: 1.8em;
    padding: 15px 30px;
    background-color: #28a745; /* Green for call to action */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-flex; /* Align icon and text */
    align-items: center;
    gap: 10px; /* Space between icon and text */
}

.call-now-button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.copy-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.copy-button:hover {
    background-color: #0056b3;
}


/* Marquees */
.notification-marquee marquee,
.balance-marquee marquee {
    font-size: 2em;
    font-weight: bold;
    color: #dc3545; /* Red for urgent messages */
    padding: 10px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    border-top: 2px solid #eee;
}

.prepaid-info-marquee marquee {
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 1.8em;
    font-weight: bold;
    color: #ffffff;
    background-color: #007bff; /* Blue for informational messages */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Information Section (P and div.noticetext) */
.info-section p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: justify;
    padding: 0 15px;
}

.notice-box {
    margin-bottom: 30px;
}

.noticetext {
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFFFF;
    background-color: #dc3545; /* Red, consistent with urgent messages */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: justify;
}

/* Client Portal Button */
.portal-links {
    margin-bottom: 30px;
}

.ClientPortalButton {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5em;
    padding: 15px 30px;
    background-color: #007bff; /* Blue */
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ClientPortalButton:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Utility Links */
.utility-links {
    margin-bottom: 40px;
    font-size: 1.1em;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px; /* Space between links */
}

.utility-links a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.utility-links a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Payment Info Table */
.payment-info {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.payment-table {
    width: 90%; /* Adjusted for better appearance */
    border-collapse: collapse;
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.payment-table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: center;
}

.bkash-header {
    background-color: #343a40; /* Darker background for headers */
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bkash-number-cell {
    background-color: #f8f9fa; /* Lighter background for numbers */
    color: #333;
    font-size: 1.8em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code {
    max-width: 100px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 15% from the top and centered */
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* Could be more responsive */
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.contact-numbers p {
    font-size: 1.3em;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    #typing-text {
        font-size: 1.5em;
        height: 80px;
    }

    .call-now-button {
        font-size: 1.4em;
        padding: 12px 25px;
    }

    .notification-marquee marquee,
    .balance-marquee marquee {
        font-size: 1.5em;
    }

    .prepaid-info-marquee marquee {
        font-size: 1.3em;
        padding: 10px;
    }

    .info-section p,
    .noticetext {
        font-size: 1em;
        padding: 15px;
    }

    .ClientPortalButton {
        font-size: 1.2em;
        padding: 12px 25px;
    }

    .utility-links {
        font-size: 0.9em;
        flex-direction: column;
        gap: 10px;
    }

    .utility-links a {
        margin: 0;
    }

    .payment-table {
        width: 100%;
    }

    .bkash-header, .bkash-number-cell {
        font-size: 1.2em;
    }

    .copy-button {
        font-size: 0.8em;
        padding: 3px 8px;
    }

    .contact-numbers p {
        font-size: 1em;
        flex-direction: column;
        gap: 5px;
    }

    .contact-numbers .copy-button {
        margin-top: 5px;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    #typing-text {
        font-size: 1.2em;
        height: 60px;
    }

    .call-now-button {
        font-size: 1.1em;
        padding: 10px 20px;
    }

    .notification-marquee marquee,
    .balance-marquee marquee {
        font-size: 1.2em;
    }

    .prepaid-info-marquee marquee {
        font-size: 1em;
        padding: 8px;
    }

    .info-section p,
    .noticetext {
        font-size: 0.9em;
        padding: 10px;
    }

    .ClientPortalButton {
        font-size: 1em;
        padding: 10px 20px;
    }

    .utility-links {
        font-size: 0.8em;
    }

    .bkash-header, .bkash-number-cell {
        font-size: 1em;
    }
}