/* 
======================================================
  Antarjal VCS - Global Stylesheet (Merged & Updated)
======================================================
*/

/* 🇧🇩 বাংলা ফন্ট কনফিগারেশন করার জন্য */
@font-face {
    font-family: 'Bangla';
    /* যেহেতু style.css নিজেই css ফোল্ডারে আছে, তাই সরাসরি ফাইলের নাম দিলেই হবে */
    src: url('Bangla.ttf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* ফন্ট লোড হওয়ার পূর্ব পর্যন্ত টেক্সট যেন গায়েব না হয়ে যায় */
}

:root {
    --bg-dark-violet: #0d0614;
    --primary-violet: #3a1c5c;
    --accent-glow: #8a2be2;
    --card-glow-1: #ff007f;
    --card-glow-2: #00f0ff;
    --card-glow-3: #ffaa00;
    --card-glow-4: #00ff66;
    --text-white: #ffffff;
    --eng-font: 'Tahoma', Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================
   গ্লোবাল ফন্ট ফ্যামিলি এনফোর্সমেন্ট
========================================= */
body {
    font-family: 'Bangla', var(--eng-font);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-color: var(--bg-dark-violet);
    -webkit-user-select: none;  /* Chrome, Safari, Opera */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* IE 10+ */
    user-select: none;          /* Standard syntax */
}

/* বাটন, ইনপুট ও ফর্ম এলিমেন্টগুলোকে গ্লোবাল ফন্ট ব্যবহার করতে বাধ্য করা */
*, input, button, select, textarea, .btn-submit, .btn-cancel, .premium-btn {
    font-family: 'Bangla', var(--eng-font) !important;
}

/* ইনপুট বক্সগুলোতে যেন ইউজার টাইপ করতে পারে, তাই সেখানে সিলেকশন অন রাখা হলো */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* =========================================
   ব্যাকগ্রাউন্ড ও লেআউট (পূর্বের ন্যায়)
========================================= */
.home-body { background: linear-gradient(135deg, #120224 0%, #05000a 100%); background-size: cover; }
.inner-body { background: linear-gradient(135deg, #120224 0%, #05000a 100%); }

.main-wrapper {
    flex: 1; display: flex; align-items: center; justify-content: center; padding: 80px 20px;
}
.content-container {
    width: 100%; max-width: 900px; display: flex; flex-direction: column; align-items: center; gap: 40px;
}
.grid-container {
    display: grid; grid-template-columns: repeat(2, 120px); gap: 30px; justify-content: center; width: 100%;
}

/* =========================================
   কার্ড ও অ্যানিমেশন (পূর্বের ন্যায়)
========================================= */
.square-card {
    position: relative; width: 100%; aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 20px; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}
.card-content h2 { font-size: 1.6rem; margin-bottom: 10px; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.card-content p { font-size: 0.95rem; opacity: 0.8; }

.card-1:hover { transform: scale(1.05); box-shadow: 0 0 30px var(--card-glow-1); border-color: var(--card-glow-1); background: rgba(255, 0, 127, 0.08); }
.card-1 h2 { color: #ff66b2; }
.card-2:hover { transform: scale(1.05); box-shadow: 0 0 35px rgba(0, 240, 255, 0.5); border-color: var(--card-glow-2); background: rgba(0, 240, 255, 0.08); }
.card-2 h2 { color: #66f5ff; }
.card-3:hover { transform: scale(1.05); box-shadow: 0 0 30px var(--card-glow-3); border-color: var(--card-glow-3); background: rgba(255, 170, 0, 0.08); }
.card-3 h2 { color: #ffcc66; }
.card-4:hover { transform: scale(1.05); box-shadow: 0 0 30px var(--card-glow-4); border-color: var(--card-glow-4); background: rgba(0, 255, 102, 0.08); }
.card-4 h2 { color: #66ff99; }

/* =========================================
   অ্যাবাউট সেকশন ও টাইপোগ্রাফি
========================================= */
.about-section {
    background: rgba(58, 28, 92, 0.2); border-left: 4px solid var(--accent-glow); padding: 25px;
    border-radius: 0 12px 12px 0; backdrop-filter: blur(5px); line-height: 1.8; text-align: justify;
    font-size: 1.05rem; animation: fadeIn 1s ease-in-out;
}
.brand-text { font-weight: bold; color: #c19bf5; }
.mail-link { color: #00f0ff; text-decoration: none; border-bottom: 1px dashed #00f0ff; transition: 0.3s; }
.mail-link:hover { color: var(--text-white); border-bottom-style: solid; }

.page-content { width: 100%; max-width: 450px; text-align: center; }
.page-title { font-size: 2.2rem; margin-bottom: 30px; color: var(--text-white); text-shadow: 0 0 15px rgba(138, 43, 226, 0.6); }

/* =========================================
   নেভিগেশন বার (পূর্বের ন্যায়)
========================================= */
.sticky-navbar {
    position: fixed; top: 0; left: 0; width: 100%; background: rgba(13, 6, 20, 0.85);
    backdrop-filter: blur(15px); border-bottom: 1px solid rgba(138, 43, 226, 0.2); z-index: 1000; padding: 5px 0;
}
.nav-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--eng-font); font-size: 1.4rem; font-weight: bold; color: var(--text-white); text-decoration: none; letter-spacing: 1px; }
.menu-logo { width: 36px; height: 36px; object-fit: contain; }
.nav-links { display: flex; list-style: none; gap: 25px; }
.nav-links a { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 1.05rem; transition: all 0.3s ease; padding: 5px 10px; border-radius: 4px; }
.nav-links a:hover, .nav-links a.active { color: var(--text-white); background: rgba(138, 43, 226, 0.3); text-shadow: 0 0 8px var(--accent-glow); }
.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.menu-toggle .bar { width: 25px; height: 3px; background-color: var(--text-white); border-radius: 3px; transition: all 0.3s ease-in-out; }

/* =========================================
   ফাইল আপলোড ও প্রোগ্রেসবার (নতুন)
========================================= */
input[type="file"] { background: rgba(138, 43, 226, 0.1); padding: 8px; border: 1px dashed #00f0ff; cursor: pointer; color: #fff; width: 100%; border-radius: 8px; box-sizing: border-box; }
input[type="file"]::file-selector-button { background: #00f0ff; color: #000; border: none; padding: 8px 15px; border-radius: 5px; font-weight: bold; cursor: pointer; margin-right: 15px; transition: 0.3s; }
input[type="file"]::file-selector-button:hover { background: #fff; }
.progress-container { width: 100%; background: rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden; margin-top: 15px; display: none; height: 10px; }
.progress-bar { height: 100%; width: 0%; background: #00f0ff; box-shadow: 0 0 10px #00f0ff; transition: width 0.2s ease; }

/* =========================================
   লগইন ও অন্যান্য ফর্ম স্টাইল
========================================= */
.login-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(138, 43, 226, 0.2); padding: 40px 30px; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); backdrop-filter: blur(10px); }
.form-group { margin-bottom: 20px; }
.form-group-row { display: flex; gap: 15px; margin-bottom: 20px; }
.input-col { flex: 1; text-align: left; }

/* গ্লোবাল ইনপুট স্টাইল (সব ফর্মের জন্য) */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea, select.modal-select, .login-card input {
    width: 100%; padding: 14px 20px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px; color: var(--text-white); font-size: 1rem; transition: all 0.3s ease; box-sizing: border-box;
}
input:focus, select:focus, textarea:focus, .login-card input:focus {
    outline: none; border-color: var(--accent-glow); box-shadow: 0 0 12px rgba(138, 43, 226, 0.5); background: rgba(0, 0, 0, 0.5);
}
select.modal-select option { background: var(--bg-dark-violet); color: var(--text-white); }
.readonly-input { background: rgba(255,255,255,0.05) !important; color: #888 !important; cursor: not-allowed; border-color: rgba(255,255,255,0.1) !important; }

/* =========================================
   অ্যালার্ট এবং ক্যাপচা বক্স
========================================= */
.warning-box { background: rgba(255, 0, 51, 0.15); border: 1px solid #ff0033; padding: 15px; border-radius: 8px; margin-bottom: 25px; text-align: left; line-height: 1.6; font-size: 0.95rem; color: #ff99aa; box-shadow: 0 0 15px rgba(255, 0, 51, 0.1); animation: shake 0.4s ease-in-out; }
.success-box { background: rgba(85, 255, 85, 0.2); border: 1px solid #55ff55; color: #55ff55; padding: 10px 15px; border-radius: 8px; margin-bottom: 15px; text-align: center; }

/* ক্যাপচা ডিজাইন */
.captcha-box { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 10px; margin-bottom: 15px; background: rgba(0,0,0,0.4); padding: 10px; border-radius: 8px; border: 1px dashed rgba(138, 43, 226, 0.5); flex-wrap: nowrap !important; }
.captcha-text { flex: 1; text-align: center; color: #00f0ff; font-size: 1.2rem; font-weight: bold; white-space: nowrap !important; }
.captcha-btn { background: transparent; border: none; color: #aaa; font-size: 1.2rem; cursor: pointer; transition: 0.3s; padding: 0 5px; }
.captcha-btn:hover { color: #00f0ff; transform: rotate(180deg); }
#cap_val_login, #cap_val_reg, #cap_val_rec { width: 80px !important; flex-shrink: 0; text-align: center; padding: 10px; }

/* =========================================
   বাটন স্টাইল
========================================= */
.btn-submit { width: 100%; padding: 14px; background: linear-gradient(45deg, var(--primary-violet), var(--accent-glow)); border: none; border-radius: 8px; color: var(--text-white); font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4); }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(138, 43, 226, 0.7); filter: brightness(1.2); }

.premium-btn { width: 100%; padding: 15px; font-size: 1.1rem; background: linear-gradient(45deg, #8a2be2, #00f0ff); border: none; border-radius: 8px; color: #fff; font-weight: bold; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); box-shadow: 0 4px 15px rgba(0,240,255,0.2); cursor: pointer; transition: 0.3s; }
.premium-btn:hover { box-shadow: 0 6px 20px rgba(0,240,255,0.4); transform: translateY(-2px); }
.send-btn { background: linear-gradient(45deg, #00f0ff, #00aaee); color: #000; text-shadow: none; }
.change-btn { background: rgba(0, 240, 255, 0.1); color: #00f0ff; border: 1px solid #00f0ff; padding: 12px 15px; border-radius: 8px; cursor: pointer; font-size: 0.9rem; transition: 0.3s; height: 100%; font-weight: bold; }
.change-btn:hover { background: #00f0ff; color: #000; }

.btn-danger { background: rgba(255, 50, 50, 0.2); color: #ff5555; border: 1px solid #ff5555; padding: 10px; border-radius: 8px; cursor: pointer; width: 100%; transition: 0.3s; }
.btn-danger:hover { background: #ff5555; color: white; }

/* বাতিল বাটনের ফিক্স (বড় সাইজ) */
.btn-cancel {
    font-size: 1.1rem !important; font-weight: bold !important; padding: 12px 20px !important;
    background: #333; color: #fff; border: none; border-radius: 8px; cursor: pointer; transition: 0.3s;
}
.btn-cancel:hover { background: #ff3366; }

/* =========================================
   মডাল পপআপ
========================================= */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; z-index: 9999; }
.modal-box { background: #0d0614; border: 1px solid rgba(138, 43, 226, 0.4); padding: 30px; border-radius: 12px; width: 90%; max-width: 500px; max-height: 85vh !important; overflow-y: auto !important; margin: 20px auto; box-shadow: 0 0 30px rgba(0,0,0,0.8); }
.modal-box::-webkit-scrollbar { width: 6px; }
.modal-box::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 10px; }
.modal-box::-webkit-scrollbar-thumb { background: var(--accent-glow); border-radius: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 15px; margin-top: 20px; }
.modal-box label { display: block; margin-bottom: 5px; color: #ddd; font-size: 0.9rem; text-align: left; }

/* =========================================
   অ্যাডমিন ড্যাশবোর্ড ও কন্ট্রোল প্যানেল
========================================= */
.dashboard-container { max-width: 800px; width: 100%; margin: 0 auto; text-align: left; }
.dashboard-title { font-size: 1.8rem; text-align: center; margin-bottom: 40px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; }
.stat-card { background: rgba(0,0,0,0.5); border: 1px solid rgba(138,43,226,0.3); border-radius: 12px; padding: 25px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: 0.3s; }
.stat-card:hover { transform: translateY(-5px); border-color: #00f0ff; box-shadow: 0 8px 25px rgba(0,240,255,0.2); }
.stat-val { font-size: 2.5rem; color: #00f0ff; font-weight: bold; margin-bottom: 5px; text-shadow: 0 0 10px rgba(0,240,255,0.3); }
.stat-label { color: #aaa; font-size: 1rem; font-weight: 500; }

.notice-board { background: rgba(255, 170, 0, 0.1); border-left: 4px solid var(--card-glow-3); padding: 20px; border-radius: 8px; margin-bottom: 30px; }
.notice-title { color: var(--card-glow-3); margin-bottom: 10px; }
.class-box { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); padding: 30px; border-radius: 12px; text-align: center; margin-bottom: 30px; }
.class-box.text-left { text-align: left; }

.admin-tabs { display: flex; border-bottom: 2px solid var(--accent-glow); margin-bottom: 20px; overflow-x: auto; gap: 5px; }
.admin-tab { padding: 10px 20px; background: rgba(0, 0, 0, 0.4); color: #aaa; border-radius: 8px 8px 0 0; text-decoration: none; font-weight: 500; transition: 0.3s; border: 1px solid transparent; border-bottom: none; white-space: nowrap; }
.admin-tab:hover { background: rgba(138, 43, 226, 0.1); color: #fff; }
.admin-tab.active { background: rgba(138, 43, 226, 0.2); color: #fff; border-color: var(--accent-glow); font-weight: bold; box-shadow: 0 -2px 10px rgba(138, 43, 226, 0.2); }

.search-box-container { margin-bottom: 20px; display: flex; justify-content: flex-end; }
.search-box-container input { padding: 10px 15px; width: 250px; border-radius: 20px; border: 1px solid rgba(138, 43, 226, 0.5); background: rgba(0, 0, 0, 0.5); color: white; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table tbody tr.clickable-row td { display: block; padding: 15px; border: 1px solid rgba(138, 43, 226, 0.3) !important; border-radius: 8px; margin-bottom: 12px; background: rgba(0,0,0,0.5); transition: all 0.3s ease; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.data-table tbody tr.clickable-row:hover td { background: rgba(138, 43, 226, 0.15); border-color: #00f0ff !important; transform: translateY(-2px); }

/* =========================================
   প্যানেল, মেইল সেন্টার ও গ্রুপ লজিক
========================================= */
.split-layout { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.full-panel { width: 100%; background: rgba(0,0,0,0.4); border-radius: 10px; padding: 25px; border: 1px solid rgba(0,240,255,0.3); margin-bottom: 25px; }
.panel-box { flex: 1; min-width: 300px; background: rgba(0,0,0,0.4); border-radius: 10px; padding: 25px; border: 1px solid rgba(138,43,226,0.3); }
.group-list-panel { flex: 1; min-width: 250px; background: rgba(0,0,0,0.4); border-radius: 10px; padding: 20px; border: 1px solid rgba(138,43,226,0.3); }
.group-details-panel { flex: 3; min-width: 300px; background: rgba(0,0,0,0.4); border-radius: 10px; padding: 20px; border: 1px solid rgba(138,43,226,0.3); min-height: 400px; }
.group-item { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); cursor: pointer; transition: 0.3s; display: flex; justify-content: space-between; align-items: center; border-radius: 6px; }
.group-item.active { background: rgba(0,240,255,0.15); border-left: 4px solid #00f0ff; }
.group-badge { background: rgba(255,255,255,0.1); padding: 5px 10px; border-radius: 20px; font-size: 0.85rem; color: white; }

.user-list-item { display: flex; align-items: center; gap: 15px; padding: 15px; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; margin-bottom: 10px; transition: 0.3s; }
.user-list-item:hover { background: rgba(138,43,226,0.15); border-color: rgba(138,43,226,0.5); }
.checkbox-list-container { max-height: 120px; overflow-y: auto; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }

.shortcode-hint { background: rgba(255,255,255,0.05); padding: 10px; border-radius: 6px; font-size: 0.85rem; color: #aaa; margin-top: 10px; line-height: 1.6; border: 1px dashed rgba(138, 43, 226, 0.5); }
.shortcode-badge { background: rgba(138, 43, 226, 0.3); color: #00f0ff; padding: 2px 6px; border-radius: 4px; border: 1px solid #8a2be2; cursor: pointer; }

/* =========================================
   অ্যানিমেশন এবং বিবিধ স্টাইল
========================================= */
.auth-links { display: flex; justify-content: space-between; margin-top: 15px; }
.auth-links a { color: var(--card-glow-2); text-decoration: none; font-size: 0.95rem; transition: 0.3s; }
.auth-links a:hover { color: #fff; text-shadow: 0 0 8px var(--card-glow-2); }
.eng-capitalize { text-transform: capitalize; }
.highlight-name { color: #00f0ff; }

/* লোডিং অ্যানিমেশন পেইজ (Authentication Redirect) */
.redirect-body { background: #000000 !important; display: flex; align-items: center; justify-content: center; height: 100vh; }
.loader-container { text-align: center; }
.spinner { width: 50px; height: 50px; border: 3px solid rgba(138, 43, 226, 0.2); border-top-color: var(--accent-glow); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }
.loading-text { font-family: var(--eng-font); font-size: 1.2rem; letter-spacing: 2px; color: rgba(255,255,255,0.7); }

/* স্টিকি ফুটার */
.sticky-footer { width: 100%; text-align: center; padding: 10px; background: rgba(13, 6, 20, 0.95); border-top: 1px solid rgba(255,255,255,0.05); font-family: var(--eng-font); font-size: 0.95rem; color: rgba(255, 255, 255, 0.5); position: fixed; bottom: 0; left: 0; z-index: 1000; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.animate-pop { animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.2) forwards; }

.js-warning-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: #0d0614; color: #ff3366; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 99999; text-align: center; font-family: sans-serif; padding: 20px; }
.js-warning-box { background: rgba(255, 0, 85, 0.1); border: 2px solid #ff0055; padding: 30px; border-radius: 12px; box-shadow: 0 0 30px rgba(255, 0, 85, 0.2); }
.js-warning-box h1 { font-size: 2rem; margin-bottom: 15px; }
.js-warning-box p { color: #fff; font-size: 1.2rem; }

/* =========================================
   রেসপনসিভ ডিজাইন (Media Queries)
========================================= */
@media (min-width: 601px) {
    .grid-container { grid-template-columns: repeat(2, minmax(200px, 300px)); }
}

@media (max-width: 600px) {
    .grid-container { grid-template-columns: 1fr; max-width: 320px; gap: 20px; }
    .main-wrapper { 
        align-items: flex-start !important; /* কন্টেন্টকে সেন্টারের বদলে ওপর থেকে শুরু করবে */
        padding: 90px 20px 60px !important; /* ওপরের প্যাডিং ১২০ পিক্সেল করা হলো */
    }
    .page-title { font-size: 1.8rem; }
    
    .form-group-row { flex-direction: column; gap: 15px; }

    .menu-toggle { display: flex; }
    .nav-links {
        display: none; flex-direction: column; width: 100%; position: absolute;
        top: 65px; left: 0; background: rgba(13, 6, 20, 0.95); padding: 15px 0;
        text-align: center; border-bottom: 1px solid rgba(138, 43, 226, 0.2); backdrop-filter: blur(15px);
    }
    .nav-links.active { display: flex; }
    
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}


