* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
}

/* ===== CONTAINER ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ===== NAVBAR ===== */
.navbar {
    background: #ff3d2e;
    padding: 15px 0;
    color: white;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

.logo {
    font-weight: 700;
}

/* ===== BUTTON ===== */
.btn {
    background: white;
    color: #ff3d2e;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
}

.btn-outline {
    border: 2px solid #ff3d2e;
    background: transparent;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    padding: 80px 0;
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text h1 {
    font-size: 40px;
    margin-bottom: 15px;
}

.hero-text p {
    margin-bottom: 20px;
}

.hero-img img {
    width: 100%;
    border-radius: 10px;
}

/* ===== FEATURES ===== */
.features {
    background: #f9f9f9;
    padding: 60px 0;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

/* ===== CATEGORIES ===== */
.categories {
    padding: 60px 0;
    text-align: center;
}

.category-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cat-card {
    padding: 20px 30px;
    background: #ff3d2e;
    color: white;
    border-radius: 30px;
}

/* ===== TEMPLATES ===== */
.templates {
    padding: 60px 0;
    text-align: center;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.template-grid img {
    width: 100%;
    border-radius: 10px;
}

/* ===== CTA ===== */
.cta {
    background: #ff3d2e;
    color: white;
    padding: 60px 0;
    text-align: center;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: white;
}

/* ===== LOGIN PAGE ===== */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    position: relative;
    margin: 40px auto;
}

.login-header {
    background: #ff3d2e;
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.login-header .logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.login-header .subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.admin-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.login-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    background: #fafafa;
}

.form-group input:focus {
    border-color: #ff3d2e;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 61, 46, 0.1);
}

.form-group input::placeholder {
    color: #ccc;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: #ff3d2e;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 61, 46, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #ff3d2e;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #cc2f24;
    text-decoration: underline;
}

.error-message {
    background: #ffe6e6;
    color: #d63031;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    border-left: 4px solid #d63031;
}

.success-message {
    background: #e6ffe6;
    color: #00b894;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    border-left: 4px solid #00b894;
}

/* ===== DASHBOARD ===== */
:root {
    --sidebar-width: 300px;
    --primary-color: #ff3d2e;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333;
    --muted-color: #666;

    /* Dashboard V2 Tokens */
    --brand-red: #ff3d2e;
    --brand-navy: #001229;
    --brand-gradient: linear-gradient(135deg, #ff3d2e 0%, #ff7b52 100%);
    --card-shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --card-shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --card-shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background: #001229;
    /* Deep Dark Navy */
    color: white;
    position: fixed;
    height: 100%;
    left: 0;
    top: 0;
    padding: 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 30px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 8px;
}

.sidebar-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
}

.sidebar-logo img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: white;
    padding: 2px;
}

.sidebar-nav {
    list-style: none;
    padding: 0 14px;
    margin: 0;
    overflow-y: auto;
    flex-grow: 1;
}

/* ===== COMMON SCROLLBAR HIDE (Reusable) ===== */
.sidebar-nav,
.dropdown-menu {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar,
.dropdown-menu::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.sidebar-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 28px 0 12px 16px;
    font-family: 'Outfit', sans-serif;
}

.sidebar-nav li {
    margin-bottom: 4px;
}

.sidebar-dropdown {
    margin-bottom: 8px;
}

.sidebar-dropdown details {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px;
}

.sidebar-dropdown summary {
    list-style: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 14px;
    transition: all 0.25s ease;
}

.sidebar-dropdown summary::-webkit-details-marker {
    display: none;
}

.sidebar-dropdown summary span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.sidebar-dropdown summary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sidebar-dropdown details[open] > summary {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.sidebar-dropdown summary .fa-chevron-down {
    font-size: 0.78rem;
    opacity: 0.8;
    transition: transform 0.25s ease;
}

.sidebar-dropdown details[open] summary .fa-chevron-down {
    transform: rotate(180deg);
}

.sidebar-submenu {
    list-style: none;
    margin: 4px 0 8px;
    padding: 0 8px 8px;
}

.sidebar-submenu li {
    margin-bottom: 2px;
}

.sidebar-submenu a {
    padding: 10px 12px 10px 36px;
    font-size: 0.88rem;
    border-radius: 10px;
}

.sidebar-submenu a i {
    width: 20px;
    font-size: 1rem;
}

.sidebar-nav a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 500;
}

.sidebar-nav a i {
    width: 24px;
    /* Fixed width for perfect alignment */
    text-align: center;
    font-size: 1.15rem;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar-nav a:hover i {
    transform: translateX(4px);
    opacity: 1;
}

.sidebar-nav a.active {
    background: linear-gradient(135deg, #ff3d2e 0%, #ff7b52 100%);
    color: white;
    box-shadow: 0 8px 16px rgba(255, 61, 46, 0.25);
    font-weight: 600;
}

.sidebar-nav a.active i {
    opacity: 1;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: 60px;
    /* Add top margin for topbar */
    padding: 30px;
    min-height: calc(100vh - 60px);
    /* Ensure content fills viewport minus topbar */
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.welcome-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.welcome-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.welcome-subtitle {
    color: var(--muted-color);
    font-size: 0.9rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.users {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.stat-icon.templates {
    background: linear-gradient(135deg, #4ecdc4, #26a69a);
}

.stat-icon.downloads {
    background: linear-gradient(135deg, #45b7d1, #2980b9);
}

.stat-icon.revenue {
    background: linear-gradient(135deg, #96ceb4, #2ecc71);
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.stat-info p {
    margin: 0;
    color: var(--muted-color);
    font-size: 0.9rem;
}

/* Quick Actions */
.quick-actions {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.quick-actions h3 {
    margin: 0 0 20px 0;
    color: var(--text-color);
    font-size: 1.2rem;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

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

.action-btn.secondary {
    background: #6c757d;
}

.action-btn.secondary:hover {
    background: #5a6268;
}

/* Recent Activity */
.recent-activity {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.recent-activity h3 {
    margin: 0 0 20px 0;
    color: var(--text-color);
    font-size: 1.2rem;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
}

.activity-content h4 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

.activity-content p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted-color);
}

/* Topbar Styles */
.topbar {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: 60px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.topbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 30px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.menu-toggle:hover {
    background: #f0f0f0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--muted-color);
}

.breadcrumb-item {
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.breadcrumb-item:hover {
    background: #f0f0f0;
    color: var(--text-color);
}

.breadcrumb-item.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.breadcrumb-separator {
    color: #ccc;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-icon {
    position: relative;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.notification-icon:hover {
    background: #f0f0f0;
}

.notification-icon i {
    font-size: 1.2rem;
    color: var(--muted-color);
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.user-menu {
    position: relative;
}

.user-trigger {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.user-trigger:hover {
    background: #f0f0f0;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 0;
    display: none;
    z-index: 1001;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
}

.dropdown-menu a i {
    color: var(--muted-color);
    font-size: 0.9rem;
}

.dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 5px 0;
}

/* ===== BANNER CATEGORIES PAGE ===== */
.page-header-card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.page-title {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
}

.page-subtitle {
    margin-top: 6px;
    color: var(--muted-color);
    font-size: 0.92rem;
}

.filters-card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.filter-item {
    background: #f5f6f8;
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.filter-item select,
.filter-item input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 0.9rem;
    color: #4b5563;
}

.search-box i {
    color: #9ca3af;
    margin-right: 8px;
}

.banner-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.banner-category-card {
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.banner-thumb {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffefe9;
}

.banner-thumb.gradient-2 {
    background: linear-gradient(120deg, #ff9a7a, #ff3d2e);
}

.banner-thumb.gradient-3 {
    background: linear-gradient(120deg, #6dd5fa, #2980b9);
}

.banner-category-content {
    padding: 14px;
}

.banner-category-content h4 {
    margin: 0 0 6px;
    color: var(--text-color);
}

.banner-category-content p {
    margin: 0 0 10px;
    color: var(--muted-color);
    font-size: 0.88rem;
}

.category-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.82rem;
}

.category-meta span i {
    margin-right: 5px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 10px;
}

.badge.success {
    background: #e8f8ef;
    color: #1f9d55;
}

.badge.warning {
    background: #fff5e6;
    color: #d9822b;
}

.table-card {
    background: var(--card-bg);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef1f5;
    overflow: hidden;
}

.table-header {
    padding: 18px 20px;
    border-bottom: 1px solid #eceff4;
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
}

.table-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #111827;
}

.table-header p {
    margin: 5px 0 0;
    font-size: 0.82rem;
    color: #6b7280;
}

.table-wrapper {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.dashboard-table th,
.dashboard-table td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.dashboard-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.dashboard-table tbody tr {
    transition: background-color 0.2s ease;
}

.dashboard-table tbody tr:nth-child(even) {
    background: #fcfdff;
}

.dashboard-table tbody tr:hover {
    background: #f8fafc;
}

.dashboard-table td:first-child {
    font-weight: 600;
    color: #111827;
}

.dashboard-table td:nth-child(2),
.dashboard-table td:nth-child(3) {
    color: #475569;
}

.dashboard-table td:last-child {
    white-space: nowrap;
}

.template-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    display: block;
}

.icon-btn {
    border: 0;
    background: #eef2f7;
    color: #415a77;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 6px;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    transform: translateY(-1px);
    background: #e2e8f0;
}

.icon-btn.danger {
    background: #ffecef;
    color: #d64550;
}

.icon-btn.danger:hover {
    background: #ffdce3;
}

/* CRUD layout inside banner categories */
.crud-layout {
    display: grid;
    grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.form-card {
    background: var(--card-bg);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef1f5;
    overflow: hidden;
    position: sticky;
    top: 78px;
}

.category-form {
    padding: 18px;
}

.form-group-inline {
    margin-bottom: 14px;
}

.form-group-inline label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 6px;
}

.form-group-inline input,
.form-group-inline textarea,
.form-group-inline select {
    width: 100%;
    border: 1px solid #dbe3ee;
    border-radius: 11px;
    background: #fbfdff;
    padding: 11px 12px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: 0;
    color: #1f2937;
    transition: all 0.2s ease;
}

.form-group-inline textarea {
    resize: vertical;
    min-height: 104px;
    line-height: 1.5;
}

.form-group-inline input:focus,
.form-group-inline textarea:focus,
.form-group-inline select:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 61, 46, 0.12);
}

.form-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-action-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 6px;
}

.form-card .action-btn {
    flex: 1 1 140px;
    justify-content: center;
}

.danger-btn {
    background: #e11d48 !important;
}

.danger-btn:hover {
    background: #be123c !important;
}

.badge.danger-light {
    background: #fee2e2;
    color: #b91c1c;
}

/* ===== BANNER CATEGORIES (FORM + TABLE LAYOUT) ===== */
.banner-categories-page {
    padding: 20px;
    background-color: #f0f2f5;
    min-height: 100vh;
}

.banner-categories-page .custom-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
}

.banner-categories-page .card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.banner-categories-page .card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
}

.banner-categories-page .card-body {
    padding: 20px;
}

.banner-categories-page .form-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

.banner-categories-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.banner-categories-page .form-group label {
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
}

.banner-categories-page .form-group label span {
    color: red;
}

.banner-categories-page .form-control {
    background-color: #f1f3f4;
    border: 1px solid #e0e0e0;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    transition: 0.2s;
}

.banner-categories-page .form-control:focus {
    outline: none;
    border-color: #ccc;
    background-color: #fff;
}

.banner-categories-page .full-width {
    grid-column: span 4;
}

.banner-categories-page .btn-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.banner-categories-page .btn-save {
    background-color: #ff3d2e;
    color: #fff;
    border: none;
    padding: 10px 35px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.banner-categories-page .btn-cancel {
    background-color: #001d3d;
    color: #fff;
    border: none;
    padding: 10px 35px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.banner-categories-page .btn-save:hover {
    background-color: #ff3d2e;
}

.banner-categories-page .btn-cancel:hover {
    background-color: #001229;
}

.banner-categories-page .table-responsive {
    overflow-x: auto;
}

.banner-categories-page .data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.banner-categories-page .data-table th {
    background-color: #fff;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #eee;
    color: #555;
    font-size: 0.85rem;
}

.banner-categories-page .data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: #333;
}

.banner-categories-page .data-table tr:hover {
    background-color: #f9f9f9;
}

.banner-categories-page .badge-active {
    background: #e6f4ea;
    color: #1e7e34;
}

.banner-categories-page .badge-draft {
    background: #fff3cd;
    color: #856404;
}

.banner-categories-page .action-icons {
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.05rem;
}

/* Table action dropdown */
.banner-categories-page .action-cell {
    text-align: center;
    position: relative;
}

.banner-categories-page .table-action-dropdown {
    position: relative;
    display: inline-block;
}

.banner-categories-page .table-action-toggle {
    width: 34px;
    height: 34px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.banner-categories-page .table-action-toggle:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.banner-categories-page .table-action-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.12);
    padding: 6px;
    display: none;
    z-index: 50;
}

.banner-categories-page .table-action-dropdown.open .table-action-menu {
    display: block;
}

.banner-categories-page .table-action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    font-size: 0.86rem;
    color: #334155;
    text-decoration: none;
    border-radius: 7px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.banner-categories-page .table-action-item i {
    width: 14px;
    font-size: 0.85rem;
}

.banner-categories-page .table-action-item.edit:hover {
    background: #eaf4ff;
    color: #0f62fe;
}

.banner-categories-page .table-action-item.delete:hover {
    background: #ffecef;
    color: #d64550;
}

/* Bootstrap DataTables tweaks for banner categories */
.banner-categories-page .dataTables_wrapper .row {
    margin: 0;
}

.banner-categories-page .dataTables_wrapper .dataTables_filter,
.banner-categories-page .dataTables_wrapper .dataTables_length {
    margin: 12px 15px;
}

.banner-categories-page .dataTables_wrapper .form-select,
.banner-categories-page .dataTables_wrapper .form-control {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    min-height: 36px;
    font-size: 0.86rem;
}

.banner-categories-page .dataTables_wrapper .dataTables_info,
.banner-categories-page .dataTables_wrapper .dataTables_paginate {
    margin: 12px 15px;
    font-size: 0.85rem;
}

.banner-categories-page .dataTables_wrapper .pagination .page-link {
    color: #475569;
}

.banner-categories-page .dataTables_wrapper .pagination .page-item.active .page-link {
    background-color: #ff3d2e;
    border-color: #ff3d2e;
    color: #fff;
}

@media (max-width: 992px) {
    .banner-categories-page .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-categories-page .full-width {
        grid-column: span 2;
    }
}

@media (max-width: 1200px) {
    .crud-layout {
        grid-template-columns: 320px 1fr;
    }
}

@media (max-width: 992px) {
    .crud-layout {
        grid-template-columns: 1fr;
    }

    .form-card {
        position: static;
    }

    .dashboard-table {
        min-width: 640px;
    }
}

.modal {
    z-index: 1300 !important;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1250 !important;
    padding: 16px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.modal-backdrop.show {
    display: flex;
}

body.modal-open .sidebar, 
body.modal-open .topbar, 
body.modal-open .main-content {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

/* Overview Modal Tab Highlighting */
#overviewTabs .nav-link {
    opacity: 0.6;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent !important;
    color: white !important;
}

#overviewTabs .nav-link.active {
    opacity: 1 !important;
    border-bottom: 3px solid #ff3d2e !important;
    background: transparent !important;
}

#overviewTabs .nav-link:hover {
    opacity: 1;
}

.view-overview:hover {
    background: var(--brand-navy) !important;
    color: white !important;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 18, 41, 0.15);
}

/* Premium Badges */
.badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: capitalize;
}

.badge.success {
    background: #ecfdf5 !important;
    color: #10b981 !important;
}

.badge.warning {
    background: #fff7ed !important;
    color: #f59e0b !important;
}

.badge.danger {
    background: #fef2f2 !important;
    color: #ef4444 !important;
}

.badge.secondary {
    background: #f1f5f9 !important;
    color: #64748b !important;
}

.confirm-modal {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

.confirm-modal h4 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.confirm-modal p {
    margin: 0 0 16px;
    color: #6b7280;
    font-size: 0.92rem;
}

/* Sidebar Collapsed State */
.sidebar.collapsed {
    transform: translateX(-100%);
}

.main-content.sidebar-collapsed {
    margin-left: 0;
}

/* Topbar adjusts when sidebar is collapsed */
.sidebar.collapsed+.topbar {
    left: 0;
}

.main-content.sidebar-collapsed+.topbar {
    left: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .topbar {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding-top: 80px;
    }
}

@media (max-width: 768px) {
    .topbar {
        left: 0;
        right: 0;
        width: 100%;
    }

    .sidebar {
        width: 100%;
        position: fixed;
        top: 60px;
        /* Below topbar */
        left: 0;
        height: calc(100vh - 60px);
        /* Full height minus topbar */
        transform: translateX(-100%);
        z-index: 999;
        transition: transform 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-header {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .sidebar-logo {
        font-size: 1.2rem;
    }

    .sidebar-logo img {
        width: 35px;
        height: 35px;
    }

    .sidebar-nav {
        padding: 10px 0;
    }

    .sidebar-nav a {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    .main-content {
        margin-left: 0;
        margin-top: 60px;
        /* Account for topbar */
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .topbar-container {
        padding: 0 15px;
    }

    .topbar-right {
        gap: 8px;
    }

    .user-trigger {
        padding: 8px 10px;
        gap: 8px;
    }

    .user-name {
        font-size: 0.85rem;
    }

    .breadcrumb {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .page-header-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .filters-card {
        grid-template-columns: 1fr;
    }

    .banner-category-grid {
        grid-template-columns: 1fr;
    }

    .crud-layout {
        grid-template-columns: 1fr;
    }

    .form-grid-two {
        grid-template-columns: 1fr;
    }
}

/* ===== RESPONSIVE ===== */
@media(max-width: 768px) {
    .hero-flex {
        flex-direction: column;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .template-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .topbar-container {
        padding: 0 10px;
    }

    .user-name,
    .user-trigger .fa-chevron-down {
        display: none;
    }

    .user-trigger {
        padding: 6px;
        border-radius: 50%;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
    }

    .sidebar {
        top: 60px;
        height: calc(100vh - 60px);
    }

    .main-content {
        padding: 15px;
    }

    .login-container {
        border-radius: 15px;
        margin: 20px 10px;
    }

    .login-header {
        padding: 25px;
    }

    .login-header .logo {
        font-size: 2rem;
    }

    .login-form {
        padding: 30px 25px;
    }
}

/* Custom Toggle Switch CSS */
.custom-toggle {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    margin: 0;
}

.custom-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 24px;
}

.custom-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.custom-toggle input:checked+.custom-slider {
    background-color: #0d6efd;
    /* Bootstrap primary blue */
}

.custom-toggle input:focus+.custom-slider {
    box-shadow: 0 0 1px #0d6efd;
}

.custom-toggle input:checked+.custom-slider:before {
    transform: translateX(22px);
}

/* ==========================================================================
   DASHBOARD V2 PREMIUM STYLES
   ========================================================================== */

.main-content {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Header */
.page-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    background: white;
    padding: 24px 32px;
    border-radius: 16px;
    box-shadow: var(--card-shadow-sm);
    border: 1px solid #f1f5f9;
}

.header-title-box h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 4px;
}

.header-title-box p {
    color: #64748b;
    font-size: 0.95rem;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0fdf4;
    padding: 8px 16px;
    border-radius: 100px;
    color: #166534;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid #dcfce7;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Premium Stat Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.premium-stat-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: var(--card-shadow-sm);
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.premium-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-lg);
    border-color: rgba(255, 61, 46, 0.2);
}

.stat-main {
    z-index: 1;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin: 4px 0;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-trend {
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.trend-up {
    color: #10b981;
}

.trend-down {
    color: #f43f5e;
}

.stat-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: var(--brand-gradient);
    box-shadow: 0 8px 16px rgba(255, 61, 46, 0.2);
    z-index: 1;
}

/* Dash Grid System */
.dash-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.premium-panel {
    background: white;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--card-shadow-sm);
    padding: 24px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.panel-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-navy);
}

/* Timeline Feed */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    display: flex;
    gap: 16px;
    position: relative;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: -20px;
    width: 2px;
    background: #f1f5f9;
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--brand-red);
    flex-shrink: 0;
    z-index: 1;
}

.timeline-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 4px;
}

.timeline-time {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Dashboard Event Calendar */
.event-calendar-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 16px;
}

.calendar-month-title {
    text-align: center;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.calendar-weekdays,
.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
}

.calendar-day {
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    background: #fff;
    border: 1px solid #eef2f7;
}

.calendar-day.empty {
    background: transparent;
    border-color: transparent;
}

.calendar-day.has-event {
    background: rgba(255, 61, 46, 0.12);
    color: #ff3d2e;
    border-color: rgba(255, 61, 46, 0.3);
}

.calendar-day.today {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35);
}

.calendar-events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calendar-event-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.event-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-red);
    margin-top: 6px;
    flex-shrink: 0;
}

.event-item-content h4 {
    margin: 0 0 2px;
    font-size: 0.85rem;
    color: #0f172a;
    font-weight: 700;
}

.event-item-content p {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
}

.calendar-event-item.empty-state .event-dot {
    background: #cbd5e1;
}

/* Quick Launch Hub */
.launch-hub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.hub-link {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    text-decoration: none;
    text-align: center;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.hub-link:hover {
    background: var(--brand-navy);
    border-color: var(--brand-navy);
    transform: scale(1.05);
}

.hub-link i {
    display: block;
    margin-bottom: 12px;
    font-size: 1.5rem;
    color: var(--brand-red);
    transition: 0.2s;
}

.hub-link span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-navy);
    transition: 0.2s;
}

.hub-link:hover i,
.hub-link:hover span {
    color: white;
}

@media (max-width: 1024px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-dual-grid {
        grid-template-columns: 1fr;
    }
}
