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);
}

/* --- নতুন বাটন এবং অ্যানিমেশন স্টাইল (আপডেটেড) --- */
@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(3, minmax(0, 1fr)); /* 3 কলামের গ্রিড */
    gap: 0.25rem; /* gap-1 (গ্যাপ কমানো হয়েছে) */
    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.7rem; /* ফন্ট সাইজ text-xs (11.2px) */
    font-weight: 600; /* semibold */
    padding: 0.5rem 0.2rem; /* py-2 px-1 (আশেপাশের প্যাডিং কমানো হয়েছে) */
    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 Styles End --- */

/* --- Eligibility Result Styles (মুছে ফেলা হয়েছে) --- */
/* --- 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;
}
/* --- অ্যাড স্লাইডার (Ad Slider) স্টাইল --- */
.ad-slide {
  opacity: 0;
  /* 0.5 সেকেন্ড ফেইড ইফেক্ট */
  transition: opacity 0.5s ease-in-out; 
  visibility: hidden;
}

.ad-slide.slide-active {
  opacity: 1;
  visibility: visible;
}

/* ★★★ নতুন Study Tracker চার্ট স্টাইল এখানে যোগ করা হয়েছে ★★★ */
.chart-container {
    position: relative;
    height: 70vh; /* চার্টের উচ্চতা */
    width: 100%;
}