/* --- EXSALA THEME CORE (UPDATED v2.0) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --primary: #04dde8;       /* Exsala Cyan */
  --primary-hover: #00bcd4;
  --bg-dark: #050607;       /* Exsala Darkest BG */
  --bg-card: #1a1b1e;       /* Exsala Card BG */
  --text-main: #ffffff;
  --text-muted: #6c757d;
  --border-color: #000000;
  --shadow-hard: 4px 4px 0px #000000; 
  
  /* Security Theme Colors */
  --secure-red: #ff0055;
  --secure-bg: #150508;
  
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    min-height: 100vh;
    background-image: radial-gradient(circle at 50% 0%, rgba(4, 221, 232, 0.15), transparent 40%);
    overflow-x: hidden;
}

/* --- UTILITY CLASSES (NEO-BRUTALISM) --- */

.ex-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-hard);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Input Style Exsala Standard */
.ex-input {
    background: #000 !important;
    border: 2px solid #333 !important;
    color: #fff !important;
    font-family: var(--font-mono);
    border-radius: 8px;
    padding: 12px 15px;
    width: 100%;
    outline: none;
    transition: 0.2s;
}
.ex-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(4, 221, 232, 0.3); /* Glow effect added */
}

/* --- NEW: SECURE FIELD STYLES (Untuk Password Merah) --- */
.secure-field {
    background: rgba(255, 0, 85, 0.08);
    border: 1px dashed var(--secure-red);
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.secure-input {
    background: var(--secure-bg) !important;
    border: 1px solid var(--secure-red) !important;
    color: #ff99bb !important;
}
.secure-input::placeholder {
    color: rgba(255, 100, 150, 0.5) !important;
}
.secure-input:focus {
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.4) !important;
    border-color: #ff5588 !important;
}

/* --- UPDATED BUTTON STYLE (High Visibility) --- */
.ex-btn {
    background: var(--primary);
    color: #000;
    font-weight: 800;
    
    /* FIX VISIBILITAS: Border Putih & Glow */
    border: 2px solid #fff; 
    box-shadow: 0 0 20px rgba(4, 221, 232, 0.3); 
    
    padding: 14px 24px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-mono);
}

.ex-btn:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(4, 221, 232, 0.6); /* Super Glow saat hover */
}

.ex-btn:active {
    transform: scale(0.98);
    box-shadow: none;
}

.ex-btn-outline {
    background: transparent;
    color: var(--text-muted);
    border: 2px solid #333;
    box-shadow: none;
}
.ex-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* --- BADGES --- */
.opt-badge {
    display: inline-block;
    background: #222;
    border: 1px solid #444;
    color: #888;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    font-family: var(--font-mono);
    vertical-align: middle;
    font-weight: 700;
}

/* --- PAGE SPECIFIC --- */

/* Navbar Widget Style */
.nav-widget {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.brand-logo {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-logo i { color: var(--primary); }

/* Hero Section */
.hero-wrapper {
    text-align: center;
    padding: 60px 20px;
    position: relative;
}
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(4, 221, 232, 0.3);
}
.hero-badge {
    background: rgba(4, 221, 232, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
}

/* Search Bar Khas Exsala */
.search-box-container {
    max-width: 600px;
    margin: 0 auto 50px;
    position: relative;
}
.search-box-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
}
.search-box-container input {
    padding-left: 45px;
    font-size: 1.1rem;
}

/* Grid Layout Scripts */
.script-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Card Script */
.script-item {
    background: var(--bg-card);
    border: 2px solid #000;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-hard);
    transition: all 0.2s;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}
.script-item:hover {
    border-color: var(--primary);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--primary);
}
.script-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    background: rgba(4, 221, 232, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(4, 221, 232, 0.2);
}
.script-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-family: var(--font-mono);
}
.script-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-grow: 1;
    margin-bottom: 20px;
    line-height: 1.5;
}
.script-meta {
    border-top: 1px dashed #333;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: #888;
}

/* Login/Admin Container */
.auth-container {
    max-width: 500px;
    width: 95%;
    margin: 40px auto 100px; /* Margin bottom besar agar scroll aman di HP */
}
.admin-card {
    background: var(--bg-card);
    border: 1px solid #222;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border-radius: 16px;
    padding: 30px;
}

/* Toast */
.toast-wrapper { position: fixed; top: 20px; right: 20px; z-index: 9999; }
.app-toast {
    background: #000;
    color: #fff;
    border: 1px solid #333;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: flex; align-items: center; gap: 10px;
    font-weight: 600;
    animation: slideIn 0.3s ease;
}
.app-toast .toast-indicator { width: 10px; height: 10px; border-radius: 50%; }

@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Particle Canvas */
#particle-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.4; }