@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #2563EB;      /* Trust Blue */
    --primary-dark: #1E40AF; /* Darker Blue for Hover */
    --background: #F8FAFC;   /* Light Grayish Blue */
    --surface: #ffffff;      /* Pure White */
    --text-main: #0F172A;    /* Dark Slate */
    --text-light: #64748B;   /* Light Slate */
    --accent: #22C55E;       /* Success Green */
    --danger: #EF4444;       /* Error Red */
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --radius: 16px;
}

/* --- RESET & GLOBAL --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body { 
    background-color: var(--background); 
    color: var(--text-main); 
    line-height: 1.5; 
    padding-bottom: 50px;
    min-height: 100vh;
}

/* --- HEADER & MARQUEE --- */
.header {
    background: var(--primary); 
    color: white; 
    padding: 30px 20px 50px; /* নিচে প্যাডিং বাড়ানো হয়েছে কার্ডের জন্য */
    border-bottom-left-radius: 30px; 
    border-bottom-right-radius: 30px;
    box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.5); 
    text-align: center;
}

.brand-logo { 
    width: 120px; 
    margin-bottom: 10px; 
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); 
}

.marquee-container {
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(5px);
    padding: 8px 0; 
    overflow: hidden; 
    white-space: nowrap; 
    margin-top: 15px; 
    border-radius: 50px; 
    border: 1px solid rgba(255,255,255,0.2);
}

.marquee-text { 
    display: inline-block; 
    padding-left: 100%; 
    animation: scroll 20s linear infinite; /* স্পিড একটু স্লো করা হয়েছে পড়ার সুবিধার জন্য */
    font-size: 0.9rem; 
    font-weight: 500; 
    color: #F1F5F9; 
}

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* --- LAYOUT CONTAINERS --- */
/* ইউজারদের জন্য (মোবাইল অ্যাপ ফিল) */
.container { 
    max-width: 480px; 
    margin: 0 auto; 
    padding: 0 20px; 
    margin-top: -35px; /* হেডার এর উপরে উঠে থাকবে */
    position: relative;
    z-index: 10;
}

/* অ্যাডমিন ড্যাশবোর্ডের জন্য (একটু চওড়া) */
.container-wide {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* --- CARDS --- */
.card {
    background: var(--surface); 
    border-radius: var(--radius); 
    box-shadow: var(--shadow);
    padding: 20px; 
    margin-bottom: 15px; 
    border: 1px solid #E2E8F0; 
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

/* ইন্টারেক্টিভ কার্ড (হোমপেজ) */
.card-interactive {
    cursor: pointer;
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}
.card-interactive:active { transform: scale(0.98); }
.card-interactive:hover { border-color: var(--primary); box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.15); }

.card-icon { 
    width: 48px; 
    height: 48px; 
    object-fit: contain; 
    border-radius: 10px; 
}

.card-content { flex: 1; margin-left: 15px; }
.card-title { font-weight: 700; font-size: 1.05rem; color: var(--text-main); }
.card-sub { font-size: 0.8rem; color: var(--text-light); font-weight: 500; }

/* --- FORMS & INPUTS --- */
label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
    margin-left: 2px;
}

input, select, textarea {
    width: 100%; 
    padding: 14px; 
    border: 1px solid #CBD5E1; 
    border-radius: 12px; 
    margin-bottom: 15px; 
    font-size: 1rem; 
    transition: 0.3s;
    background: #F8FAFC;
    color: var(--text-main);
}

input:focus, select:focus, textarea:focus { 
    outline: none; 
    border-color: var(--primary); 
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); 
}

/* --- BUTTONS --- */
.btn {
    width: 100%; 
    padding: 14px; 
    border: none; 
    border-radius: 12px; 
    font-weight: 600; 
    font-size: 1rem; 
    cursor: pointer; 
    transition: 0.3s;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
}

.btn-primary { 
    background: var(--primary); 
    color: white; 
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25); 
}

.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* --- ALERTS (Toast) --- */
.toast {
    position: fixed; 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%) translateY(100px);
    background: #1e293b; 
    color: white; 
    padding: 12px 25px; 
    border-radius: 50px;
    font-size: 0.9rem; 
    font-weight: 500;
    opacity: 0; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    pointer-events: none; 
    z-index: 1000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- ADMIN DASHBOARD TABLE --- */
.admin-table { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: 0.85rem; 
    background: white;
}

.admin-table th { 
    background: #F1F5F9; 
    color: var(--text-light); 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 12px;
    text-align: left;
}

.admin-table td { 
    padding: 12px; 
    border-bottom: 1px solid #E2E8F0; 
    color: var(--text-main);
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background-color: #F8FAFC; }

/* Status Badges */
.status-active { color: var(--accent); font-weight: 700; background: #DCFCE7; padding: 2px 8px; border-radius: 6px; font-size: 0.75rem; }
.status-inactive { color: var(--danger); font-weight: 700; background: #FEE2E2; padding: 2px 8px; border-radius: 6px; font-size: 0.75rem; }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 600px) {
    .container-wide { padding: 10px; }
    .header { padding: 20px 20px 40px; }
    .card { padding: 15px; }
}