/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;600;700&family=Poppins:wght@400;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Poppins', 'Hind Siliguri', sans-serif; 
    background: #f0f2f5; 
    color: #333; 
    padding-top: 50px; /* Space for sticky bar */
}

a { text-decoration: none; }

/* Sticky Countdown Bar */
#sticky-bar {
    position: fixed; top: 0; left: 0; width: 100%;
    background: linear-gradient(90deg, #FF416C 0%, #FF4B2B 100%);
    color: #fff; padding: 10px; text-align: center;
    font-weight: bold; z-index: 10000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 0.9em;
    display: none; /* Controlled by JS */
}
.timer-badge { 
    background: #fff; color: #d63031; padding: 1px 8px; 
    border-radius: 10px; margin-left: 5px; font-weight: 800;
}

/* Main Layout */
.container { 
    max-width: 700px; /* Slightly narrower for better mobile view */
    margin: 15px auto; 
    background: transparent; 
}

/* Header Area */
header { 
    background: #fff; 
    padding: 20px; 
    text-align: center; 
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}
header h1 { 
    font-size: 1.5em; 
    background: -webkit-linear-gradient(45deg, #0984e3, #d63031);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* COMPACT IMAGE DESIGN */
.image-container {
    background: #000; /* Dark background to make image pop */
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden;
}

.hero-img { 
    max-height: 180px; /* ছবি অনেক ছোট করা হয়েছে */
    max-width: 100%; 
    width: auto; 
    height: auto;
    object-fit: contain; /* ছবি কাটবে না, পুরোটা দেখাবে */
    display: inline-block;
}

/* Colorful Blog Cards */
.blog-card { 
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    border-left: 5px solid #3498db; /* Default Color */
    transition: transform 0.2s;
}
.blog-card:hover { transform: translateY(-2px); }

/* Dynamic Colors for Cards (Child targeting) */
.blog-card:nth-child(odd) { border-left-color: #e17055; }
.blog-card:nth-child(even) { border-left-color: #00b894; }
.blog-card:nth-child(3n) { border-left-color: #6c5ce7; }

.blog-card h2 { 
    font-size: 1.2em; 
    color: #2d3436; 
    margin-bottom: 10px; 
    font-weight: 700;
}
.blog-card p { 
    font-size: 0.95em; 
    line-height: 1.6; 
    color: #636e72; 
    text-align: justify; 
}

/* Highlighted Fake Buttons */
.highlight-box {
    background: linear-gradient(135deg, #ffffff 0%, #f7f1e3 100%);
    border: 2px dashed #ff7675; 
    border-radius: 15px;
    padding: 20px; text-align: center; margin: 25px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    position: relative; overflow: hidden;
    animation: pulse-border 2s infinite;
}

.msg-line { 
    display: block; font-size: 1.1em; font-weight: 700; 
    color: #d63031; margin-bottom: 12px; 
}

.download-btn {
    background: linear-gradient(to right, #00b09b, #96c93d);
    color: white; padding: 12px 35px; border-radius: 50px;
    font-size: 1.1em; font-weight: bold; display: inline-block;
    box-shadow: 0 5px 15px rgba(150, 201, 61, 0.5);
    text-transform: uppercase; letter-spacing: 1px;
}
.download-btn.red { 
    background: linear-gradient(to right, #ff416c, #ff4b2b);
    box-shadow: 0 5px 15px rgba(255, 75, 43, 0.5); 
}
.download-btn.blue { 
    background: linear-gradient(to right, #2980b9, #6dd5fa); 
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.5); 
}

/* Ad Slot */
.ad-wrapper { 
    background: #fff; border-radius: 8px; padding: 10px; 
    text-align: center; margin: 20px 0; border: 1px solid #eee;
}

/* Animations */
@keyframes pulse-border {
    0% { border-color: #ff7675; }
    50% { border-color: #fab1a0; }
    100% { border-color: #ff7675; }
}

/* Footer */
footer { text-align: center; padding: 20px; color: #aaa; font-size: 0.8em; }

/* =========================================
   ADMIN PANEL STYLES (ADD TO BOTTOM)
   ========================================= */

/* Admin Global Background */
.admin-body {
    background-color: #eef2f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 40px 20px;
}

/* Admin Main Card/Container */
.admin-card {
    background: #ffffff;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 30px;
    overflow: hidden;
}

/* Header Section */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 20px;
}
.admin-header h2 { color: #2d3436; font-size: 24px; }
.logout-btn { color: #d63031; font-weight: bold; text-decoration: none; font-size: 14px; }

/* Navigation Tabs */
.admin-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}
.admin-nav .btn {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 14px;
}
/* Active State Logic handled by inline PHP styles, 
   but here are defaults for classes if you add them */
.nav-active { background: #2d3436; color: #fff; }
.nav-inactive { background: #dfe6e9; color: #636e72; }

/* Form Elements */
.input-group { margin-bottom: 20px; }
.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #636e72;
    font-size: 14px;
}
.input-group input[type="text"],
.input-group textarea,
.input-group input[type="password"] {
    width: 100%;
    padding: 14px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 14px;
    transition: 0.3s;
}
.input-group input:focus,
.input-group textarea:focus {
    background: #fff;
    border-color: #74b9ff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(116, 185, 255, 0.1);
}

/* Checkbox Styling */
input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 8px;
    cursor: pointer;
}

/* Main Action Buttons */
button.btn, .btn-primary {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}
button.btn:hover { transform: translateY(-2px); }

/* Data Table */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px; /* Space between rows */
    margin-top: 10px;
}
table th {
    text-align: left;
    padding: 15px;
    color: #b2bec3;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
table tr { background: #fff; transition: 0.2s; }
table tr:hover { background: #f8f9fa; }
table td {
    padding: 15px;
    border-top: 1px solid #f0f2f5;
    border-bottom: 1px solid #f0f2f5;
    color: #2d3436;
    vertical-align: middle;
}
/* Rounded corners for rows */
table td:first-child { border-left: 1px solid #f0f2f5; border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
table td:last-child { border-right: 1px solid #f0f2f5; border-top-right-radius: 10px; border-bottom-right-radius: 10px; }

/* Table Specifics */
.preview-thumb {
    width: 50px; height: 50px;
    object-fit: cover; border-radius: 8px;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.copy-btn {
    background: #00b894;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
}
.copy-btn:hover { background: #00a884; }

/* Grid Layout for Ads */
.ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Success Message */
h4 {
    background: #e3fcdb;
    color: #27ae60;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid #cceed4;
}