@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;600;700&family=Fira+Code:wght@400;500;600&display=swap');

/* Neural CSS Framework v2.0 - FIXED AND OPTIMIZED VERSION */
:root {
    --primary-color: #64ffda;
    --secondary-color: #7c4dff;
    --accent-color: #ff6ec7;
    --warning-color: #fbbf24;
    --success-color: #4ade80;
    --error-color: #ef4444;
    --background-color: #000000;
    --surface-color: #0f172a;
    --surface-secondary: #1e293b;
    --text-primary: #e0e6ed;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --neural-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --glass-bg: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(100, 255, 218, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    overflow-y: auto; /* Pastikan body bisa discroll */
    min-height: 100vh; /* Minimal tinggi viewport */
}

.container {
    min-height: 100vh; /* Pastikan container penuh tinggi viewport */
    overflow-y: auto; /* Izinkan scrolling */
    padding-bottom: 50px; /* Tambahkan padding bawah */
}

/* Scrollbar untuk seluruh aplikasi */
::-webkit-scrollbar {
    width: 10px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #64ffda, #7c4dff);
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: content-box;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c4dff, #ff6ec7);
}

/* Smooth scroll untuk seluruh dokumen */
html {
    scroll-behavior: smooth;
}

/* Container dengan scroll */
.scroll-container {
    overflow-y: auto;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #64ffda rgba(30, 41, 59, 0.3); /* Firefox */
    overscroll-behavior-y: contain; /* Mencegah bounce effect */
}

/* Efek scroll yang halus */
.scripts-grid {
    scroll-snap-type: y mandatory;
    scroll-padding: 20px;
}

.script-card {
    scroll-snap-align: start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pastikan konten panjang bisa discroll */
.scripts-grid {
    max-height: calc(100vh - 300px); /* Sesuaikan dengan kebutuhan */
    overflow-y: auto;
}

/* Neural Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}
/* Header */
.header {
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg,
        var(--glass-bg),
        rgba(30, 41, 59, 0.8),
        var(--glass-bg));
    backdrop-filter: blur(30px);
    border: 2px solid transparent;
    background-clip: padding-box;
    padding: 50px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 40px 80px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 100px rgba(100, 255, 218, 0.2);
}

.header::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    background-size: 400% 400%;
    animation: borderGlow 4s ease infinite;
    border-radius: 30px;
    z-index: -1;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--warning-color), var(--primary-color));
    background-size: 400% 400%;
    animation: neuralText 6s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-shadow: 0 0 50px rgba(100, 255, 218, 0.8);
    position: relative;
    z-index: 1;
    letter-spacing: 2px;
}

@keyframes neuralText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header p {
    color: var(--text-secondary);
    font-size: 1.3rem;
    font-weight: 400;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

/* Status Indicators */
.status-indicators {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(100, 255, 218, 0.1);
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid rgba(100, 255, 218, 0.3);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success-color);
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--success-color);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Advanced Controls Panel */
.controls {
    display: grid;
    grid-template-columns: 2fr 1fr auto auto auto;
    gap: 20px;
    margin-bottom: 40px;
    align-items: center;
}

.search-container {
    position: relative;
}

.search-box {
    width: 100%;
    padding: 18px 60px 18px 24px;
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.search-box::placeholder {
    color: var(--text-muted);
}

.search-box:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow:
        0 0 0 1px var(--primary-color),
        0 0 30px rgba(100, 255, 218, 0.3),
        0 12px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.filter-select {
    padding: 18px 24px;
    border: 2px solid rgba(124, 77, 255, 0.2);
    border-radius: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 1px var(--secondary-color), 0 0 30px rgba(124, 77, 255, 0.3);
}

.add-btn, .ai-assist-btn {
    padding: 18px 32px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.add-btn {
    background: var(--neural-gradient);
    color: var(--surface-color);
    box-shadow: 0 8px 32px rgba(100, 255, 218, 0.4);
}

.ai-assist-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(255, 110, 199, 0.4);
}

.add-btn:hover, .ai-assist-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

.add-btn:hover {
    box-shadow: 0 16px 48px rgba(100, 255, 218, 0.6);
}

.ai-assist-btn:hover {
    box-shadow: 0 16px 48px rgba(255, 110, 199, 0.6);
}

.backup-btn, .restore-btn {
    padding: 18px 32px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Statistics Panel */
.stats-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, var(--glass-bg), rgba(30, 41, 59, 0.8));
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 255, 218, 0.5);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.2);
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ENHANCED SCRIPT CARDS - MAIN STYLING */
.scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.script-card {
    background: linear-gradient(145deg,
        rgba(30, 42, 71, 0.95),
        rgba(45, 55, 85, 0.9),
        rgba(25, 35, 65, 0.95)) !important; /* Kept !important as it was in the "FORCE OVERRIDE" section. If not needed, remove. */
    border: 2px solid rgba(0, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    position: relative !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(15px) !important;
    margin-bottom: 25px !important;
}

/* Animated border effect */
.script-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        transparent,
        rgba(0, 255, 255, 0.3),
        transparent,
        rgba(255, 0, 255, 0.3),
        transparent);
    background-size: 400% 400%;
    animation: borderFlow 4s ease infinite;
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.script-card:hover::before {
    opacity: 1;
}

@keyframes borderFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.script-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    border-color: rgba(0, 255, 255, 0.6) !important;
    box-shadow:
        0 20px 60px rgba(0, 255, 255, 0.3),
        0 0 40px rgba(0, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* Header Section */
.script-header {
    padding: 25px 30px 20px !important;
    background: linear-gradient(135deg,
        rgba(0, 255, 255, 0.08),
        rgba(100, 200, 255, 0.05),
        rgba(0, 255, 255, 0.08)) !important;
    border-bottom: 1px solid rgba(0, 255, 255, 0.15) !important;
    position: relative !important;
}

.script-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 255, 255, 0.8),
        transparent);
    animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(0.3);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

.script-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.script-title-container {
    flex: 1;
    margin-right: 15px;
}

.script-title {
    font-family: 'Orbitron', monospace !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 8px 0 !important;
    text-shadow:
        0 0 20px rgba(0, 255, 255, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.5) !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
}

.script-type, .script-type-badge {
    background: linear-gradient(135deg,
        rgba(0, 255, 255, 0.8),
        rgba(100, 200, 255, 0.9)) !important;
    color: #000 !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow:
        0 4px 15px rgba(0, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    display: inline-block !important;
}

.script-type::before, .script-type-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent);
    animation: badgeShine 2s infinite;
}

@keyframes badgeShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Copy Button */
.copy-btn {
    background: linear-gradient(135deg, #4ade80, #22c55e) !important;
    color: white !important;
    border: none !important;
    padding: 10px 18px !important;
    border-radius: 12px !important;
    font-size: 0.8em !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.4) !important;
    position: relative !important;
    overflow: hidden !important;
}

.copy-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.6) !important;
}

/* Content Section */
.script-content {
    padding: 25px 30px !important;
    background: rgba(0, 0, 0, 0.15) !important;
}

.script-description {
    color: rgba(180, 200, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.script-meta-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: rgba(160, 180, 255, 0.8);
    font-size: 0.85rem;
}

.script-metadata {
    display: flex;
    gap: 15px;
    color: #a0a0ff;
    font-size: 0.8em;
}

.script-date, .script-modified, .lines-count, .created-date {
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.script-date::before, .script-modified::before, .lines-count::before, .created-date::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 255, 255, 0.1),
        transparent);
    animation: metaShine 4s infinite;
}

@keyframes metaShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.script-code {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(15, 15, 30, 0.8));
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 18px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.85em;
    color: #00ff88;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 200px;
    white-space: pre-wrap;
    line-height: 1.6;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

.script-code::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #ff00ff, #ffff00);
    opacity: 0.6;
}

.script-code code {
    color: inherit;
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    font-family: inherit;
}

/* Footer Section */
.script-footer {
    padding: 20px 30px !important;
    background: linear-gradient(135deg,
        rgba(20, 30, 50, 0.9),
        rgba(10, 20, 40, 0.95)) !important;
    border-top: 1px solid rgba(0, 255, 255, 0.1) !important;
}

.script-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.script-btn, .script-actions button {
    padding: 12px 24px !important;
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
}

.modify-btn, .edit-btn { /* Combined .edit-btn and .modify-btn */
    background: linear-gradient(135deg,
        rgba(255, 193, 7, 0.8),
        rgba(255, 165, 0, 0.9)) !important;
    color: #000 !important;
    border-color: rgba(255, 193, 7, 0.5) !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3) !important;
}

.delete-btn {
    background: linear-gradient(135deg,
        rgba(220, 53, 69, 0.8),
        rgba(255, 0, 0, 0.9)) !important;
    color: #fff !important;
    border-color: rgba(220, 53, 69, 0.5) !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3) !important;
}

.favorite-btn {
    background: linear-gradient(135deg, #ff6ec7, #7c4dff) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 110, 199, 0.3) !important;
}

/* Hover States (Unified) */
.script-btn:hover, .script-actions button:hover {
    transform: scale(1.05) translateY(-2px) !important;
}

.modify-btn:hover, .edit-btn:hover { /* Combined .edit-btn:hover and .modify-btn:hover */
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5) !important;
    border-color: rgba(255, 193, 7, 0.8) !important;
}

.delete-btn:hover {
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5) !important;
    border-color: rgba(220, 53, 69, 0.8) !important;
}

.favorite-btn:hover {
    box-shadow: 0 8px 25px rgba(255, 110, 199, 0.5) !important;
}

.script-btn:active, .script-actions button:active {
    transform: scale(0.95) translateY(0);
}

/* Button Effect Overlays (Unified) */
.script-btn::before, .script-actions button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    transition: left 0.5s ease;
}

.script-btn:hover::before, .script-actions button:hover::before {
    left: 100%;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(28, 28, 61, 0.8), rgba(45, 45, 85, 0.6));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 25px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.empty-state h3 {
    font-family: 'Orbitron', monospace;
    color: #00ffff;
    margin-bottom: 20px;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.empty-state p {
    color: #a0a0ff;
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

/* Modal System */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
}

.modal-content {
    background: linear-gradient(135deg, var(--glass-bg), rgba(30, 41, 59, 0.95));
    backdrop-filter: blur(40px);
    border: 2px solid transparent;
    margin: 2% auto;
    padding: 50px;
    border-radius: 30px;
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: modalAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalAppear {
    from {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Notification System */
.neural-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    border-radius: 10px;
    z-index: 9999;
    color: white;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.neural-toast.success {
    background: rgba(74, 222, 128, 0.8); /* This is the specific color for success from the original CSS */
}

.neural-toast.error {
    background: rgba(239, 68, 68, 0.8); /* This is the specific color for error from the original CSS */
}

.neural-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .scripts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }

    .controls {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .script-card {
        margin: 0 10px;
    }

    .script-title-wrapper {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .script-actions {
        flex-direction: column;
        gap: 10px;
    }

    .script-btn, .script-actions button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .script-header, .script-content, .script-footer {
        padding: 15px 20px;
    }

    .script-code {
        padding: 15px;
        font-size: 0.8em;
    }

    .script-metadata {
        flex-direction: column;
        gap: 8px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--neural-gradient);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.script-code::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.script-code::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.script-code::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Selection Styling */
::selection {
    background: rgba(100, 255, 218, 0.3);
    color: #ffffff;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Neural Login Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #64ffda;
    --secondary-color: #7c4dff;
    --accent-color: #ff6ec7;
    --background-primary: #121827;
    --background-secondary: #1a1a2e;
    --background-tertiary: #16213e;
    --text-primary: #e0e6ed;
    --text-secondary: #94a3b8;
    --border-color: rgba(0, 255, 255, 0.2);
}

body {
    font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--background-primary), var(--background-secondary), var(--background-tertiary));
    min-height: 100vh;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--background-primary), var(--background-secondary), var(--background-tertiary));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.login-container {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(20, 30, 50, 0.9));
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5), 
        0 0 100px rgba(0, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.login-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 400% 400%;
    z-index: -1;
    animation: borderGlow 4s ease infinite;
    opacity: 0.6;
    border-radius: 22px;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.neural-logo {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.5);
}

.login-header h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.login-header p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 15px 20px 15px 45px;
    background: linear-gradient(135deg, rgba(30, 42, 71, 0.9), rgba(20, 30, 50, 0.8));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.input-group .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.login-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--background-primary);
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

.login-btn-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.5s ease;
}

.login-btn:hover .login-btn-effect {
    left: 100%;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    position: relative;
}

.neural-scan-line {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.login-footer p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.login-message {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
}

.login-message.error {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.login-message.success {
    background-color: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

@keyframes particleFloat {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-50px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 20px;
    }

    .neural-logo {
        font-size: 3rem;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }
}
/* Modal System */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
}

.modal-content {
    background: linear-gradient(135deg, var(--glass-bg), rgba(30, 41, 59, 0.95));
    backdrop-filter: blur(40px);
    border: 2px solid transparent;
    margin: 2% auto;
    padding: 50px;
    border-radius: 30px;
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: modalAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    background-size: 400% 400%;
    animation: borderGlow 4s ease infinite;
    border-radius: 30px;
    z-index: -1;
}

@keyframes modalAppear {
    from { 
        transform: translateY(-100px) scale(0.8); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

.modal h2 {
    font-family: 'Orbitron', monospace;
    color: #f1f5f9;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    background: var(--neural-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 15px;
    font-weight: 700;
    color: #000000;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 20px 25px;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    font-size: 16px;
    background: var(--glass-bg);
    color: #e2e8f0;
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.form-group textarea {
    height: 250px;
    font-family: 'Fira Code', 'Monaco', monospace;
    resize: vertical;
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 1px var(--primary-color), 
        0 0 30px rgba(100, 255, 218, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.5);
    background: rgba(15, 23, 42, 0.95);
    transform: translateY(-2px);
}

.modal-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.btn {
    padding: 18px 40px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--neural-gradient);
    color: var(--surface-color);
    box-shadow: 0 8px 32px rgba(100, 255, 218, 0.4);
}

.btn-secondary {
    background: rgba(71, 85, 105, 0.8);
    color: #e2e8f0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
}

.btn-primary:hover {
    box-shadow: 0 16px 48px rgba(100, 255, 218, 0.6);
}

.btn-secondary:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    background: rgba(71, 85, 105, 1);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 20000;
}

.quantum-loader {
    width: 80px;
    height: 80px;
    position: relative;
}

.quantum-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: quantumSpin 1s linear infinite;
}

.quantum-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-top-color: var(--secondary-color);
    animation-duration: 0.8s;
    animation-direction: reverse;
}

.quantum-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-top-color: var(--accent-color);
    animation-duration: 0.6s;
}

@keyframes quantumSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.reload-btn {
    background: linear-gradient(135deg, #64ffda, #7c4dff);
    color: #0f172a;
    border: none;
    padding: 10px 20px;
    margin-left: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reload-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.4);
}

/* Responsive Base Styles */
* {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    min-width: 320px; /* Minimal width untuk mobile */
}

/* Media Queries untuk Responsiveness */
@media screen and (max-width: 1440px) {
    .container {
        padding: 15px;
    }

    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media screen and (max-width: 1024px) {
    .controls {
        flex-direction: column;
        gap: 15px;
    }

    .stats-panel {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .scripts-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .user-info {
        flex-direction: column;
        align-items: center;
    }

    .script-card {
        padding: 15px;
    }

    .script-actions {
        flex-direction: column;
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 10px;
    }

    .stats-panel {
        grid-template-columns: 1fr;
    }

    .search-container,
    .filter-select,
    .add-btn,
    .ai-assist-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Responsive Typography */
@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 12px;
    }
}