body {
    font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
    background-color: #f8f9fa;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.tab-button {
    background-color: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    white-space: nowrap;
}
.active-tab {
    background-color: #111827;
    color: #ffffff;
    border-color: #111827;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -3px rgba(17, 24, 39, 0.4);
}

/* --- নতুন বাটন এবং অ্যানিমেশন স্টাইল (2x2 গ্রিড) --- */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animated-border-box {
    position: relative;
    padding: 3px; /* বর্ডারের পুরুত্ব */
    border-radius: 0.75rem; /* rounded-xl */
    overflow: hidden;
    background: #f8f9fa; /* body bg */
    z-index: 1;
}

.animated-border-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -2;
    background: conic-gradient(
        transparent,
        transparent,
        transparent,
        #111827, /* কালো আলোর রঙ */
        #111827,
        transparent
    );
    animation: rotate 4s linear infinite;
}

.animated-border-box::after {
    content: '';
    position: absolute;
    inset: 3px; /* উপরের padding এর সমান */
    background: #f8f9fa; /* body bg */
    border-radius: 0.6rem; /* মূল বর্ডারের থেকে সামান্য কম */
    z-index: -1;
}

.button-grid-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2x2 গ্রিড */
    gap: 0.5rem; /* gap-2 */
    background-color: #ffffff; /* ভিতরের সাদা ব্যাকগ্রাউন্ড */
    border-radius: 0.5rem; /* rounded-lg */
    padding: 0.5rem; /* p-2 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.calendar-view-button {
    background-color: transparent;
    color: #4b5563; /* gray-600 */
    border: 1px solid #d1d5db; /* gray-300 border */
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    font-size: 0.75rem; /* text-xs (ছোট ফন্ট) */
    font-weight: 600; /* semibold */
    padding: 0.5rem; /* py-2 px-2 */
    border-radius: 0.375rem; /* rounded-md */
    white-space: nowrap;
    text-align: center;
    width: 100%; /* গ্রিড সেলে পুরো জায়গা নিবে */
}

.active-view {
    background-color: #1f2937; /* gray-800 */
    color: #ffffff; /* white */
    border-color: #1f2937;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* --- অ্যানিমেশন স্টাইল শেষ --- */

/* --- Eligibility Checker Form Styles --- */
.form-input, .form-select {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #1f2937;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.form-select {
     background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}
.form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
}
.form-radio {
    height: 1rem;
    width: 1rem;
    border-color: #d1d5db;
    color: #1f2937;
    margin-right: 0.5rem;
}
.form-radio:checked {
    background-color: #1f2937;
}
/* --- Form Styles End --- */

/* --- Eligibility Result Styles --- */
.result-toggle .toggle-icon {
    transition: transform 0.2s ease-in-out;
}
.result-toggle .toggle-icon.rotate-180 {
    transform: rotate(180deg);
}
.result-details {
    white-space: pre-wrap; /* JSON থেকে আসা নতুন লাইন দেখানোর জন্য */
}
/* --- Result Styles End --- */


.table-wrapper {
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}
.bordered-table th, .bordered-table td {
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem;
}
.bordered-table th { padding: 0.5rem 0.75rem; }
.bordered-table th:last-child, .bordered-table td:last-child { border-right: 0; }
.bordered-table tr:last-child td { border-bottom: 0; }
.bordered-table { border-collapse: collapse; width: 100%; }

.overflow-x-auto::-webkit-scrollbar { height: 8px; }
.overflow-x-auto::-webkit-scrollbar-track { background: #f1f1f1; }
.overflow-x-auto::-webkit-scrollbar-thumb { background: #aab2bd; border-radius: 4px; }
.overflow-x-auto::-webkit-scrollbar-thumb:hover { background: #888; }

.scrollbar-on-top { transform: rotateX(180deg); }
.scrollbar-on-top > .table-container-inner { transform: rotateX(180deg); }

.cursor { display: inline-block; width: 3px; height: 1em; background-color: #4b5563; animation: blink 0.8s infinite; vertical-align: middle; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.loading-spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(0, 0, 0, 0.1); border-radius: 50%; border-top-color: #3498db; animation: spin 1s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.error-message { 
    color: #4b5563; /* gray-600 */
    text-align: center; 
    padding: 20px; 
    background-color: #f9fafb; /* gray-50 */
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 8px; 
    margin: 20px 0; 
}

.scrolling-text-container { flex-grow: 1; overflow: hidden; position: relative; height: 1.5rem; }
.scrolling-text { position: absolute; white-space: nowrap; will-change: transform; animation: scroll-left linear infinite; }
@keyframes scroll-left { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
.scrolling-text-container:hover .scrolling-text { animation-play-state: paused; }

/* Modal Styles */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-content { background: white; padding: 1.5rem; border-radius: 0.75rem; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; transform: scale(0.95); transition: transform 0.3s; }
.modal-overlay.show .modal-content { transform: scale(1); }

/* Custom Calendar Styles */
.countdown-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #e9ecef;
}
.countdown-circle::before {
    content: '';
    position: absolute;
    inset: 5px;
    background: #fff;
    border-radius: 50%;
}
.countdown-text {
    position: relative;
    font-size: 1.25rem;
    font-weight: bold;
}
 .countdown-text span {
    display: block;
    font-size: 0.75rem;
    font-weight: normal;
    margin-top: -4px;
}

.text-countdown {
    font-size: 0.7rem; /* 11.2px - text-xs is 12px */
    line-height: 1rem;
}
