/* RESET & UTILITIES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

:root {
    --bg-dark: #0B0F19;
    --bg-sidebar: #060913;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-glow: rgba(99, 102, 241, 0.15);
    
    --primary: #6366F1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.4);
    --primary-hover: #4F46E5;
    
    --success: #10B981; /* Emerald */
    --success-glow: rgba(16, 185, 129, 0.3);
    --success-hover: #059669;
    
    --warning: #F59E0B; /* Amber */
    --warning-glow: rgba(245, 158, 11, 0.3);
    
    --danger: #EF4444; /* Rose */
    --danger-glow: rgba(239, 68, 68, 0.3);
    --danger-hover: #DC2626;

    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --text-inverse: #111827;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* HELPER STYLES */
.hidden {
    display: none !important;
}

.text-center { text-align: center; }
.margin-top { margin-top: 2rem; }
.margin-bottom { margin-bottom: 2rem; }
.max-height-300 { max-height: 300px; overflow-y: auto; }

/* BADGES & LIGHTS */
.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
}
.badge-running {
    background-color: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}
.badge-success, .badge-completed {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-failed, .badge-stopped {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-pending, .badge-paused {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-post {
    background-color: #ECFDF5;
    color: #047857;
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: bold;
}

/* TOAST NOTIFIKASI */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}
.toast.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-info { border-left: 4px solid var(--primary); }

/* AUTHENTICASI CONTAINER */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 40%),
                var(--bg-dark);
    padding: 1rem;
}
.auth-card {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.5s ease-out;
}
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}
.logo-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #06B6D4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}
.logo-icon i {
    width: 32px;
    height: 32px;
    color: white;
}
.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(to right, #FFFFFF 30%, #9CA3AF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}
.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.auth-form h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}
.auth-switch {
    text-align: center;
    font-size: 0.875rem;
    margin-top: 1.5rem;
    color: var(--text-muted);
}
.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.auth-switch a:hover {
    color: white;
    text-decoration: underline;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}
.btn-block { width: 100%; }
.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.btn-success {
    background-color: var(--success);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-success:hover {
    background-color: var(--success-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.btn-warning {
    background-color: var(--warning);
    color: var(--text-inverse);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}
.btn-warning:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.btn-danger {
    background-color: var(--danger);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
    background-color: var(--danger-hover);
    transform: translateY(-2px);
}
.btn-danger-outline {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
}
.btn-danger-outline:hover {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
.btn-success-outline {
    background: transparent;
    border: 1px solid var(--success);
    color: var(--success);
}
.btn-success-outline:hover {
    background: var(--success);
    color: white;
}
.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 8px;
}
.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 0.6rem;
    border-radius: 8px;
}
.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* FORM INPUTS */
.form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.input-group label i {
    width: 16px;
    height: 16px;
}
.input-group input, 
.input-group textarea,
.input-group select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.2s;
}
.input-group input:focus, 
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}
.input-helper {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* MAIN DASHBOARD LAYOUT */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR STYLES */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--card-border);
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
}
.logo i {
    width: 24px;
    height: 24px;
    color: var(--primary);
}
.icon-glow {
    filter: drop-shadow(0 0 8px var(--primary));
}
.sidebar-nav {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}
.nav-item:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.02);
}
.nav-item.active {
    color: white;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #06B6D4 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}
.user-info {
    display: flex;
    flex-direction: column;
}
.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}
.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* CONTENT AREA */
.content-area {
    flex-grow: 1;
    padding: 2rem 2.5rem;
    overflow-y: auto;
}
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1.5rem;
}
.header-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}
.header-title p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* STATUS PILL WA */
.status-pill {
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-connected {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.status-connected .status-dot {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}
.status-connecting {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.status-connecting .status-dot {
    background-color: var(--warning);
    box-shadow: 0 0 8px var(--warning);
    animation: pulse 1s infinite alternate;
}
.status-disconnected {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.status-disconnected .status-dot {
    background-color: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

/* CARDS & PANELS */
.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.card-glass {
    backdrop-filter: blur(15px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}
.card-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* GRIDS */
.grid {
    display: grid;
    gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-4 { grid-template-columns: 1fr; }
}

/* QR CODE AREA */
.qr-container {
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 1px dashed var(--card-border);
    padding: 1.5rem;
    margin-top: 1rem;
}
.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.placeholder-icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    opacity: 0.5;
}
.qr-placeholder p {
    color: var(--text-muted);
    font-size: 0.9rem;
}
#qr-image {
    width: 220px;
    height: 220px;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}
.qr-expiry {
    font-size: 0.75rem !important;
    color: var(--warning) !important;
}
.success-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}
.success-circle i {
    width: 40px;
    height: 40px;
}
.status-success-text {
    color: var(--success);
    font-size: 1.15rem !important;
    font-weight: 600;
}

/* WIRING STATS */
.stats-grid .stat-box {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-icon i {
    width: 24px;
    height: 24px;
    color: white;
}
.bg-blue { background-color: rgba(99, 102, 241, 0.2); border: 1px solid rgba(99, 102, 241, 0.3); }
.bg-red { background-color: rgba(239, 68, 68, 0.2); border: 1px solid rgba(239, 68, 68, 0.3); }
.bg-green { background-color: rgba(16, 185, 129, 0.2); border: 1px solid rgba(16, 185, 129, 0.3); }
.bg-purple { background-color: rgba(168, 85, 247, 0.2); border: 1px solid rgba(168, 85, 247, 0.3); }
.stat-info {
    display: flex;
    flex-direction: column;
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* BLAST PAGE - RECIPIENT TOGGLES */
.recipient-input-options {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.recipient-input-options .btn {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
}
.recipient-input-options .btn.btn-active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.file-upload-box {
    background: rgba(255, 255, 255, 0.01);
    border: 2px dashed var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.file-upload-box:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.02);
}
.file-upload-box i {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.file-upload-box input {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}
.csv-info {
    margin-top: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.csv-info i { width: 16px; height: 16px; }

.template-variables-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.template-variables-tags .tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: monospace;
}
.template-variables-tags .tag:hover {
    color: white;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.delay-slider-group {
    background: rgba(0, 0, 0, 0.15);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}
.delay-slider-group label {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.info-tooltip {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    cursor: help;
}
.slider-inputs {
    display: flex;
    gap: 1rem;
}
.slider-box {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
}
.slider-box input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    height: 6px;
    outline: none;
    -webkit-appearance: none;
}
.slider-box input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
}
.slider-box input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    margin-top: -4px;
}

/* BLAST PAGE - MONITOR SECTION */
.no-data-box {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
}
.no-data-box i {
    width: 48px;
    height: 48px;
    opacity: 0.3;
    margin-bottom: 1rem;
}
.no-data-box .desc {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

#active-campaign-monitor {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
}
.active-camp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}
.active-camp-title-wrapper h3 {
    font-size: 1.1rem;
    color: white;
}
.active-camp-actions {
    display: flex;
    gap: 0.4rem;
}
.progress-bar-container {
    background: rgba(255, 255, 255, 0.05);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.progress-bar-fill {
    background: linear-gradient(to right, var(--primary) 0%, #06B6D4 100%);
    height: 100%;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: width 0.4s ease;
}
.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.stats-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.mini-stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    padding: 0.75rem;
    border-radius: 12px;
    text-align: center;
}
.mini-stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}
.mini-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.text-green { color: var(--success); }
.text-red { color: var(--danger); }
.text-purple { color: #A855F7; }

.live-console {
    background-color: #030712;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem;
    font-family: monospace;
    font-size: 0.8rem;
    height: 180px;
    overflow-y: auto;
    color: #10B981; /* green text console */
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
}
.console-line {
    margin-bottom: 0.4rem;
    line-height: 1.4;
}
.console-line.system { color: #9CA3AF; }
.console-line.success { color: var(--success); }
.console-line.failed { color: var(--danger); }
.console-line.wait { color: var(--warning); }

/* TABLES */
.table-container {
    width: 100%;
    overflow-x: auto;
}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}
.table th, .table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--card-border);
}
.table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.01);
}
.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

/* API DOCS STYLES */
.api-key-box {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--card-border);
    padding: 1.25rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}
.api-key-box label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}
.api-key-input-wrapper {
    display: flex;
    gap: 0.5rem;
}
.api-key-input-wrapper input {
    flex-grow: 1;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: white;
    font-family: monospace;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}
.endpoint-spec {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.method-url {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--card-border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}
.method-url code {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-main);
}
pre {
    background: #030712;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    overflow-x: auto;
    font-size: 0.8rem;
    color: #E5E7EB;
}
code {
    font-family: monospace;
}

.code-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.code-tabs .btn {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
}
.code-tabs .btn.btn-active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.placeholder-key {
    color: #F59E0B;
    font-weight: bold;
}

/* MODAL BOX */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: opacity 0.2s;
}
.modal.hidden {
    opacity: 0;
    pointer-events: none;
}
.modal-content {
    width: 100%;
    max-width: 700px;
    border-radius: 24px;
    overflow: hidden;
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}
.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}
.btn-close-modal:hover { color: white; }
.modal-body {
    padding: 2rem;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes pulse {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.05);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}
