/* =================================================================
   ফাইনাল থিম: Professional Blue (প্রফেশনাল নীল)
   ================================================================= */

/* --- রঙের ভ্যারিয়েবল --- */
:root {
    --background: #FFFFFF;
    --foreground: #FFFFFF;
    --text-primary: #1e293b; 
    --text-secondary: #475569;
    --accent: #3b82f6; /* প্রধান নীল রঙ */
    --accent-dark: #2563eb; /* গাঢ় নীল */
    --border: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --card-hover-shadow: 0 10px 20px -3px rgb(59 130 246 / 0.2), 0 4px 6px -4px rgb(59 130 246 / 0.1);
}

html.dark {
    --background: #0f172a; 
    --foreground: #1e293b;
    --text-primary: #f1f5f9; 
    --text-secondary: #94a3b8;
    --accent: #60a5fa; /* হালকা নীল */
    --accent-dark: #3b82f6;
    --border: #334155;
}

/* --- Animated Gradient Background --- */
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    background: linear-gradient(-45deg, #f0f9ff, #e0f2fe, #dbeafe, #c7d2fe);
    background-size: 400% 400%;
    animation: gradient-animation 20s ease infinite;
}

html.dark body {
    background: linear-gradient(-45deg, #0f172a, #1e293b, #0c4a6e, #1e3a8a);
    background-size: 400% 400%;
    animation: gradient-animation 20s ease infinite;
}

/* --- বেসিক স্টাইল --- */
body { 
    font-family: 'Hind Siliguri', sans-serif; 
    color: var(--text-primary); 
    transition: background-color 0.3s, color 0.3s; 
}

.title-font { 
    font-family: 'Tiro Bangla', serif; 
}

/* --- কম্পোনেন্ট স্টাইল --- */
.view { display: none; }

.card { 
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 0.75rem; 
    padding: 1.5rem; 
    border: 1px solid var(--border); 
    box-shadow: var(--card-shadow); 
    transition: all 0.3s ease; 
    backdrop-filter: blur(10px);
}

html.dark .card {
    background-color: rgba(30, 41, 59, 0.85);
}

.card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--card-hover-shadow); 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.login-card {
    animation: fadeIn 0.5s ease-out;
}

.action-button { 
    background-color: var(--accent); 
    color: #ffffff; 
    padding: 0.7rem 1.4rem; 
    border-radius: 0.5rem; 
    font-weight: 600; 
    font-size: 0.9rem; 
    transition: all 0.2s ease; 
    width: 100%; 
    border: none; 
    cursor: pointer; 
    box-shadow: 0 2px 10px -2px rgba(59, 130, 246, 0.5);
}

.action-button:hover:not(:disabled) { 
    background-color: var(--accent-dark); 
    transform: translateY(-2px);
    box-shadow: 0 4px 15px -2px rgba(59, 130, 246, 0.4);
}

.action-button:disabled { 
    background-color: #94a3b8; 
    cursor: not-allowed; 
    box-shadow: none;
}

.input-field { 
    width: 100%; 
    padding: 0.7rem 1rem; 
    border: 1px solid var(--border); 
    background-color: var(--background); 
    border-radius: 0.5rem; 
    color: var(--text-primary); 
    transition: all 0.2s ease;
}

.input-field:focus { 
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.option-item {
    transition: all 0.2s ease-in-out;
}
.option-item:hover {
    transform: translateX(5px);
    background-color: rgba(59, 130, 246, 0.05);
    border-color: var(--accent);
}
.option-item.selected-option {
    background-color: rgba(59, 130, 246, 0.15);
    border-color: var(--accent);
    color: var(--accent-dark);
    font-weight: bold;
}
html.dark .option-item:hover {
    background-color: rgba(96, 165, 250, 0.1);
}
html.dark .option-item.selected-option {
    background-color: rgba(96, 165, 250, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}


/* --- Footer Styles --- */
.footer {
    background-color: var(--foreground);
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    margin-top: 3rem;
    color: var(--text-secondary);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer .copyright {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}
.social-icons {
    display: flex;
    gap: 1rem;
}
.social-icons a {
    color: var(--text-secondary);
    transition: all 0.2s ease;
}
.social-icons a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}


/* --- Admin Panel Responsive Styles --- */
#hamburgerMenu { display: none; }
.admin-layout { display: flex; height: calc(100vh - 81px); background-color: var(--background); }
.admin-sidebar { width: 16rem; background-color: #0f172a; color: white; padding: 1rem; flex-shrink: 0; transition: transform 0.3s ease-in-out; }
.admin-main-content { flex-grow: 1; padding: 2rem; overflow-y: auto; }

/* --- অন্যান্য স্টাইল --- */
.loader-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 9998; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.loader { border: 5px solid #f3f3f3; border-top: 5px solid var(--accent); border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; z-index: 9999; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.modal-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); z-index: 40; display: flex; align-items: center; justify-content: center; }
.modal-content { max-height: 90vh; overflow-y: auto; background-color: var(--foreground); border-radius: 0.75rem; padding: 2rem; border: 1px solid var(--border); }
.theme-switch-wrapper { display: flex; align-items: center; gap: 0.5rem; }
.theme-switch { display: inline-block; height: 24px; position: relative; width: 48px; }
.theme-switch input { display:none; }
.slider { background-color: #ccc; bottom: 0; cursor: pointer; left: 0; position: absolute; right: 0; top: 0; transition: .4s; }
.slider:before { background-color: #fff; bottom: 4px; content: ""; height: 16px; left: 4px; position: absolute; transition: .4s; width: 16px; }
input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before { transform: translateX(24px); }
.slider.round { border-radius: 24px; }
.slider.round:before { border-radius: 50%; }
.sidebar-link { display: flex; align-items: center; padding: 0.75rem 1rem; border-radius: 0.5rem; transition: background-color 0.2s; }
.sidebar-link:hover { background-color: rgba(255,255,255,0.1); }
.sidebar-link.active { background-color: var(--accent); color: white; }
.table-auto { width: 100%; border-collapse: collapse; }
.table-auto th, .table-auto td { border-bottom: 1px solid var(--border); padding: 0.75rem; text-align: left; }
.table-auto th { background-color: #f8fafc; font-weight: 600; }
html.dark .table-auto th { background-color: #334155; }
.table-auto tr:last-child td { border-bottom: none; }
.table-wrapper { background-color: var(--foreground); border-radius: 0.5rem; overflow-x: auto; box-shadow: var(--card-shadow); }
.tab-button { padding: 0.5rem 1rem; border-radius: 0.5rem 0.5rem 0 0; font-weight: 600; cursor: pointer; transition: all 0.2s; border-bottom: 3px solid transparent; }
.tab-button.active { color: var(--accent); border-bottom-color: var(--accent); }

/* --- Mobile Responsive Styles (768px এর নিচের স্ক্রিনের জন্য) --- */
@media (max-width: 768px) {
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
        z-index: 50;
        padding-top: 5rem;
    }
    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 20px rgba(0,0,0,0.5);
    }
    .admin-main-content {
        padding: 1rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .card {
        padding: 1rem;
    }
    h1, h2, h3 {
        font-size: 1.25rem !important;
    }
    .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4.gap-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
