/**
 * WHATSAPP NUMBER MANAGER
 * Comic / Anime Cyber Dashboard Theme
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;700&family=Bangers&display=swap');

:root {
    /* Color Palette: Dark Navy / Cyber Purple with Neon Accents */
    --bg-dark: #0a0e1a;
    --bg-surface: #10162a;
    --bg-surface-elevated: #161e38;
    --bg-card: #141c33;
    --bg-card-hover: #1b2545;
    
    /* Neon Accents */
    --neon-cyan: #00f3ff;
    --neon-cyan-glow: rgba(0, 243, 255, 0.4);
    --neon-pink: #ff2a85;
    --neon-pink-glow: rgba(255, 42, 133, 0.4);
    --neon-purple: #9d4edd;
    --neon-purple-glow: rgba(157, 78, 221, 0.35);
    --neon-green: #05ffa1;
    --neon-green-glow: rgba(5, 255, 161, 0.35);
    --neon-amber: #ffb703;
    --neon-amber-glow: rgba(255, 183, 3, 0.35);
    --neon-red: #ff3366;
    --neon-red-glow: rgba(255, 51, 102, 0.4);
    
    /* Typography Colors */
    --text-primary: #f0f4fc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-neon: #00f3ff;
    
    /* Borders & Halftones */
    --border-color: rgba(0, 243, 255, 0.18);
    --border-glow: 0 0 12px rgba(0, 243, 255, 0.25);
    --border-card: 1px solid rgba(157, 78, 221, 0.22);
    
    /* Font Families */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Space Grotesk', 'Outfit', sans-serif;
    --font-comic: 'Bangers', cursive, sans-serif;
    
    /* Comic shadows */
    --shadow-comic: 4px 4px 0px rgba(0, 243, 255, 0.2);
    --shadow-comic-pink: 4px 4px 0px rgba(255, 42, 133, 0.25);
}

/* Global Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 14.5px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(157, 78, 221, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 243, 255, 0.06) 0%, transparent 45%),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
}

/* Comic halftone subtle header */
.comic-pattern {
    background-image: radial-gradient(rgba(0, 243, 255, 0.12) 1.5px, transparent 1.5px);
    background-size: 10px 10px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: var(--bg-surface);
}
::-webkit-scrollbar-thumb {
    background: #2a375f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* App Wrapper Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar Styles */
.sidebar {
    width: 270px;
    background: linear-gradient(180deg, #0d1222 0%, #120e29 100%);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s ease;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.4);
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.12);
    position: relative;
}

.brand-icon-box {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 0 15px var(--neon-cyan-glow);
    flex-shrink: 0;
    color: #fff;
    transform: rotate(-3deg);
    transition: transform 0.2s ease;
}

.brand-icon-box:hover {
    transform: rotate(0deg) scale(1.05);
}

.sidebar-title-wrap {
    overflow: hidden;
}

.sidebar-brand-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    line-height: 1.2;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-brand-name span.neon-tag {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan-glow);
}

.sidebar-brand-sub {
    font-size: 10px;
    color: var(--neon-pink);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
    display: block;
}

/* Sidebar Menu */
.sidebar-menu {
    list-style: none;
    padding: 16px 12px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-category {
    font-size: 10.5px;
    font-weight: 700;
    color: #556987;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 14px 12px 6px 12px;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 13.5px;
    transition: all 0.22s ease;
    border: 1px solid transparent;
    position: relative;
    cursor: pointer;
}

.menu-item a .menu-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    transition: transform 0.2s ease;
}

.menu-item a:hover {
    color: #fff;
    background: rgba(0, 243, 255, 0.08);
    border-color: rgba(0, 243, 255, 0.25);
    transform: translateX(3px);
}

.menu-item a:hover .menu-icon {
    transform: scale(1.15);
}

.menu-item.active a {
    color: #fff;
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.15) 0%, rgba(157, 78, 221, 0.12) 100%);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    font-weight: 600;
}

.menu-item.active a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--neon-cyan);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 8px var(--neon-cyan);
}

/* Sidebar Footer / User Profile */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(0, 243, 255, 0.12);
    background: rgba(8, 12, 22, 0.6);
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface-elevated);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(157, 78, 221, 0.3);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #7928ca, #ff0080);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.35);
}

.user-info {
    flex-grow: 1;
    overflow: hidden;
}

.user-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-badge {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 1px 7px;
    border-radius: 4px;
}

.role-admin {
    background: rgba(255, 42, 133, 0.2);
    color: var(--neon-pink);
    border: 1px solid var(--neon-pink);
}

.role-staff {
    background: rgba(0, 243, 255, 0.2);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
}

.btn-logout-sidebar {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-logout-sidebar:hover {
    color: var(--neon-red);
    transform: scale(1.1);
}

/* Main Content Area */
.main-wrapper {
    margin-left: 270px;
    flex-grow: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

/* Top Navbar */
.topbar {
    height: 70px;
    background: rgba(13, 18, 34, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

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

.btn-toggle-mobile {
    display: none;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--neon-cyan);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

.page-title-box h1 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-title-box p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 1px;
}

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

.live-clock-badge {
    background: rgba(16, 22, 42, 0.8);
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* Page Container */
.content-body {
    padding: 28px;
    flex-grow: 1;
}

/* Comic / Anime Buttons */
.btn-comic {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13.5px;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    user-select: none;
}

.btn-comic-primary {
    background: linear-gradient(135deg, #00d2ff 0%, #0077ff 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-comic-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
    background: linear-gradient(135deg, #1ae0ff 0%, #0088ff 100%);
}

.btn-comic-neon-pink {
    background: linear-gradient(135deg, #ff2a85 0%, #b5179e 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 42, 133, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-comic-neon-pink:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 42, 133, 0.55);
}

.btn-comic-success {
    background: linear-gradient(135deg, #05ffa1 0%, #00a86b 100%);
    color: #062417;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(5, 255, 161, 0.3);
}

.btn-comic-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 255, 161, 0.5);
}

.btn-comic-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-comic-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(0, 243, 255, 0.3);
}

.btn-comic-danger {
    background: linear-gradient(135deg, #ff3366 0%, #c9184a 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}

.btn-comic-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.5);
}

.btn-icon-only {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8px;
}

/* Comic Status Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-status-aktif {
    background: rgba(5, 255, 161, 0.14);
    color: #05ffa1;
    border: 1px solid rgba(5, 255, 161, 0.4);
    box-shadow: 0 0 10px rgba(5, 255, 161, 0.15);
}

.badge-status-cadangan {
    background: rgba(255, 183, 3, 0.14);
    color: #ffb703;
    border: 1px solid rgba(255, 183, 3, 0.4);
    box-shadow: 0 0 10px rgba(255, 183, 3, 0.15);
}

.badge-status-terblock {
    background: rgba(255, 51, 102, 0.15);
    color: #ff3366;
    border: 1px solid rgba(255, 51, 102, 0.45);
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.2);
}

.badge-status-nonaktif {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Schedule Badges */
.badge-neon-green {
    background: rgba(5, 255, 161, 0.15);
    color: #05ffa1;
    border: 1px solid var(--neon-green);
}
.badge-neon-amber {
    background: rgba(255, 183, 3, 0.15);
    color: #ffb703;
    border: 1px solid var(--neon-amber);
}
.badge-neon-blue {
    background: rgba(0, 243, 255, 0.15);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
}

/* Stat Cards Grid */
.stat-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, #17213d 100%);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--card-glow, rgba(0, 243, 255, 0.15)) 0%, transparent 70%);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--neon-cyan);
    box-shadow: 0 8px 25px rgba(0, 243, 255, 0.18);
}

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

.stat-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    background: rgba(255, 255, 255, 0.05);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-subtitle {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Card Glow Presets */
.glow-cyan { --card-glow: rgba(0, 243, 255, 0.35); }
.glow-green { --card-glow: rgba(5, 255, 161, 0.35); }
.glow-amber { --card-glow: rgba(255, 183, 3, 0.35); }
.glow-red { --card-glow: rgba(255, 51, 102, 0.35); }
.glow-purple { --card-glow: rgba(157, 78, 221, 0.35); }
.glow-pink { --card-glow: rgba(255, 42, 133, 0.35); }

/* Anime Panels / Containers */
.anime-panel {
    background: var(--bg-surface);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    margin-bottom: 24px;
    position: relative;
}

.anime-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.anime-panel-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Filter Bar Styles */
.filter-card {
    background: linear-gradient(180deg, #141c33 0%, #10162a 100%);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 22px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.form-control {
    background: #0d1222;
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    padding: 9px 12px;
    font-size: 13.5px;
    font-family: var(--font-main);
    transition: all 0.2s ease;
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.25);
    background: #11172c;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300f3ff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 32px;
    cursor: pointer;
}

select.form-control option {
    background: #10162a;
    color: #fff;
}

/* Quick Filter Badges Row */
.quick-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.quick-filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-filter-btn:hover {
    color: #fff;
    border-color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.08);
}

.quick-filter-btn.active {
    background: var(--neon-cyan);
    color: #061325;
    border-color: var(--neon-cyan);
    font-weight: 800;
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.4);
}

/* Comic Table */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(0, 243, 255, 0.14);
    background: var(--bg-surface);
}

.comic-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comic-table thead th {
    background: #0f152a;
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 14px 16px;
    border-bottom: 2px solid rgba(0, 243, 255, 0.25);
    white-space: nowrap;
}

.comic-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 13.5px;
    vertical-align: middle;
}

.comic-table tbody tr {
    transition: background-color 0.18s ease;
}

.comic-table tbody tr:hover {
    background-color: rgba(0, 243, 255, 0.04);
}

/* Phone Number Cell & Copy Button */
.phone-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.phone-number-text {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
}

.btn-copy-num {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.25);
    color: var(--neon-cyan);
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.18s ease;
}

.btn-copy-num:hover {
    background: var(--neon-cyan);
    color: #061325;
    box-shadow: 0 0 8px var(--neon-cyan);
    transform: scale(1.1);
}

/* Duration Block Pill */
.duration-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.duration-pill.active-blocked {
    background: rgba(255, 51, 102, 0.15);
    border-color: rgba(255, 51, 102, 0.4);
    color: var(--neon-red);
}

.duration-pill.recovered {
    background: rgba(5, 255, 161, 0.12);
    border-color: rgba(5, 255, 161, 0.3);
    color: var(--neon-green);
}

/* Mobile Card View (shown automatically when < 768px) */
.mobile-cards-grid {
    display: none;
    grid-template-columns: 1fr;
    gap: 16px;
}

.wa-card-item {
    background: linear-gradient(135deg, #141c33 0%, #10162a 100%);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 14px;
    padding: 16px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.wa-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    font-size: 12.5px;
    margin-bottom: 14px;
}

.wa-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 8, 16, 0.78);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: linear-gradient(170deg, #141c33 0%, #0d1222 100%);
    border: 1px solid var(--neon-cyan);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 35px rgba(0, 243, 255, 0.2), 0 20px 40px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--neon-red);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    background: rgba(10, 14, 26, 0.5);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comic-toast {
    background: #141c33;
    border: 1px solid var(--neon-cyan);
    border-left: 5px solid var(--neon-cyan);
    border-radius: 10px;
    padding: 14px 18px;
    color: #fff;
    min-width: 300px;
    max-width: 420px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 243, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.comic-toast.show {
    transform: translateX(0);
}

.comic-toast.toast-error {
    border-color: var(--neon-red);
    border-left-color: var(--neon-red);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 51, 102, 0.25);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-wrapper {
        margin-left: 0;
    }
    .btn-toggle-mobile {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .content-body {
        padding: 18px 14px;
    }
    .topbar {
        padding: 0 16px;
    }
    .table-responsive {
        display: none;
    }
    .mobile-cards-grid {
        display: grid;
    }
    .stat-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .stat-cards-grid {
        grid-template-columns: 1fr;
    }
}
