:root {
    --sidebar-width: 260px;
    --primary-color: #065f46;
    --bg-light: #f8fafc;
    --accent-gold: #fbbf24;
    --soft-bg: #fdfbf7;
}

body {
    background-color: var(--soft-bg);
    font-family: 'Inter', 'Poppins', 'Hind Siliguri', sans-serif;
    margin: 0;
    color: #1e293b;
}

/* --- Sidebar Navigation --- */
#sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0; top: 0;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    transition: transform 0.3s ease-in-out;
    z-index: 1050;
}

/* --- Mobile Header --- */
.mobile-top-bar {
    display: none;
    background: #fff;
    padding: 10px 20px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0; z-index: 1040;
}

.nav-link {
    color: #64748b;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 4px 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: #f1f5f9;
}

.nav-link.active {
    background-color: rgba(6, 95, 70, 0.1);
    color: var(--primary-color);
}

/* --- Main Content Area --- */
#content {
    margin-left: var(--sidebar-width);
    padding: 40px;
    min-height: 100vh;
    transition: margin-left 0.3s ease-in-out;
}

.card { border: none; border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); transition: transform 0.2s ease, box-shadow 0.2s ease; margin-bottom: 20px; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }

/* --- Common UI elements (Badges, tables, forms etc) --- */
.badge-paid, .status-completed, .event-status-live { background-color: #dcfce7; color: #166534; font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.badge-pending, .status-pending { background-color: #fef9c3; color: #854d0e; font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.event-status-draft { background-color: #f1f5f9; color: #475569; font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; }

.table thead th { background-color: #f8fafc; color: #64748b; font-size: 0.8rem; text-transform: uppercase; border-bottom: 1px solid #e2e8f0; letter-spacing: 0.5px; }
.table tbody td { vertical-align: middle; font-size: 0.9rem; padding: 15px 12px; border-bottom: 1px solid #f1f5f9;}

.avatar-circle {
    width: 35px; height: 35px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 0.8rem;
}

/* filter section used in all-attendees */
.filter-section { background: #fff; padding: 20px; border-radius: 12px; margin-bottom: 25px; border: 1px solid #e2e8f0; }

/* Dashboard specific */
.stat-card-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.bg-primary-soft { background-color: #e0f2fe; color: #0284c7; }
.bg-success-soft { background-color: #dcfce7; color: #166534; }
.bg-warning-soft { background-color: #fef9c3; color: #ca8a04; }
.bg-danger-soft { background-color: #fee2e2; color: #dc2626; }

/* Dashboard + All Events */
.stat-card { border-left: 4px solid var(--primary-color); }

/* Create-Event Form Builder Styling */
.builder-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin-bottom: 15px; position: relative; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.remove-btn { position: absolute; top: 15px; right: 15px; cursor: pointer; color: #dc3545; }
.field-label-input { border: none; border-bottom: 2px solid #eee; font-weight: bold; width: 85%; margin-bottom: 10px; padding: 5px 0; background: transparent; }
.field-label-input:focus { outline: none; border-color: var(--primary-color); }
.options-list { margin-top: 10px; padding-left: 15px; border-left: 2px dashed #ccc; }

/* Payout specific */
.balance-card { background: linear-gradient(135deg, #065f46 0%, #064e3b 100%); color: white; padding: 30px; }

/* Event.php specific */
.hero-banner { background-color: #065f46; color: white; padding: 60px 20px; text-align: center; border-bottom-left-radius: 50px; border-bottom-right-radius: 50px; margin-bottom: 40px; }
.event-card { background: #fff; border-radius: 16px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); border: none; padding: 40px; margin-top: -80px; }
.form-control, .form-select { border-radius: 8px; padding: 12px 15px; border: 1px solid #e2e8f0; background-color: #f8fafc; }
.form-control:focus, .form-select:focus { box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.2); border-color: #065f46; }
.btn-success { background-color: #065f46; border-color: #065f46; padding: 12px; font-weight: 600; }
.btn-success:hover { background-color: #044e3a; }
.detail-item { display: flex; align-items: center; margin-bottom: 15px; }
.detail-icon { background-color: #dcfce7; color: #166534; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-right: 15px; font-size: 1.2rem; }

/* index.php specific */
.navbar-brand { font-weight: 800; color: var(--primary-color) !important; letter-spacing: -1px; }
.hero-banner-index { background: linear-gradient(rgba(6, 95, 70, 0.9), rgba(6, 95, 70, 0.9)), url('https://images.unsplash.com/photo-1511795409834-ef04bbd61622?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80'); background-size: cover; background-position: center; padding: 100px 0; color: white; border-bottom-left-radius: 50px; border-bottom-right-radius: 50px; }
.registration-card { background: white; border-radius: 24px; padding: 30px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); color: #333; }

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.btn-verify {
    background: var(--accent-gold);
    color: #000;
    font-weight: 700;
    border: none;
    padding: 15px;
    border-radius: 12px;
    transition: 0.3s;
    width: 100%;
}

.btn-verify:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

/* --- Event Type Icons --- */
.event-type-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: 0.3s;
}
.event-type-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(6, 95, 70, 0.1);
}
.icon-circle {
    width: 70px; height: 70px;
    background: rgba(6, 95, 70, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
}

/* --- Captcha Styling (Placeholder) --- */
.captcha-box {
    background: #f8f9fa;
    border: 1px dashed #ccc;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    letter-spacing: 5px;
    text-align: center;
    user-select: none;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    #sidebar { transform: translateX(-100%); }
    #sidebar.show { transform: translateX(0); }
    #content { margin-left: 0; padding: 20px; }
    .mobile-top-bar { display: flex; justify-content: space-between; align-items: center; }
    .overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 1045; }
    .overlay.show { display: block; }
}
