/* Design System & Variables */
:root {
    --bg-main: #0B0F19;
    --bg-sidebar: #0F1626;
    --bg-card: rgba(20, 30, 50, 0.45);
    --bg-card-hover: rgba(28, 42, 69, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(163, 230, 53, 0.2);
    
    --primary: #a3e635;
    --primary-glow: rgba(163, 230, 53, 0.4);
    --secondary: #2dd4bf;
    --secondary-glow: rgba(45, 212, 191, 0.3);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    
    --glass-blur: blur(16px);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow: 0 0 25px rgba(163, 230, 53, 0.15);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    height: 100vh;
}

body.dark-theme {
    background-color: var(--bg-main);
}

/* App Container Layout */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px;
    flex-shrink: 0;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    position: relative;
}

.logo-glow {
    position: absolute;
    width: 45px;
    height: 45px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(5px);
    border-radius: 50%;
}

.logo-icon {
    font-size: 24px;
    color: var(--primary);
    z-index: 2;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.brand-text h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.brand-text span {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    background: none;
    border: 1px solid transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    transition: var(--transition-smooth);
}

.nav-item i {
    font-size: 18px;
    transition: var(--transition-smooth);
}

.nav-item:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    color: var(--primary);
    background-color: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.05);
}

.nav-item.active i {
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.sidebar-footer {
    margin-top: auto;
}

.info-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-card i {
    color: var(--primary);
    margin-top: 2px;
}

.info-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Main Content Styling */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 40px;
    position: relative;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.welcome-text h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary) 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-text p {
    color: var(--text-secondary);
    font-size: 15px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.green {
    background-color: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.status-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Tab Management */
.tab-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hidden-tab {
    display: none !important;
}

/* Search Box Area */
.search-section {
    margin-bottom: 28px;
}

.search-box-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 24px;
    color: var(--text-muted);
    font-size: 20px;
    transition: var(--transition-smooth);
}

#search-input {
    width: 100%;
    background-color: rgba(15, 22, 38, 0.6);
    border: 1px solid var(--border-color);
    padding: 20px 24px 20px 64px;
    border-radius: 18px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition-smooth);
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(163, 230, 53, 0.15), inset 0 0 8px rgba(163, 230, 53, 0.05);
    background-color: rgba(15, 22, 38, 0.8);
}

#search-input:focus + .search-icon {
    color: var(--primary);
}

.clear-btn {
    position: absolute;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    display: none;
    transition: var(--transition-smooth);
}

.clear-btn:hover {
    color: var(--text-primary);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    flex-grow: 1;
    align-items: stretch;
}

/* Results Column */
.results-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3 i {
    color: var(--primary);
}

.results-count {
    font-size: 13px;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.03);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    max-height: calc(100vh - 340px);
    padding-right: 8px;
}

/* Result Card */
.result-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.result-card:hover {
    background-color: var(--bg-card-hover);
    border-color: rgba(163, 230, 53, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.result-card.active-card {
    border-color: var(--primary);
    background-color: rgba(163, 230, 53, 0.05);
    box-shadow: 0 0 15px rgba(163, 230, 53, 0.08);
}

.result-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: transparent;
    transition: var(--transition-smooth);
}

.result-card.active-card .result-card-glow {
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.result-main-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    padding-right: 20px;
}

.result-breadcrumb {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.result-title mark {
    background-color: rgba(163, 230, 53, 0.3);
    color: var(--text-primary);
    border-radius: 2px;
    padding: 0 2px;
}

.result-code-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.code-badge {
    background-color: rgba(163, 230, 53, 0.12);
    color: var(--primary);
    border: 1px solid rgba(163, 230, 53, 0.2);
    padding: 6px 12px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.result-card:hover .code-badge {
    background-color: var(--primary);
    color: #0b0f19;
    border-color: var(--primary);
}

.copy-card-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.copy-card-btn:hover {
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
    background-color: rgba(15, 22, 38, 0.3);
    border: 1px dashed var(--border-color);
    border-radius: 20px;
    margin-top: 10px;
}

.empty-icon-glow {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(163, 230, 53, 0.15) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.empty-icon-glow i {
    font-size: 32px;
    color: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.empty-icon-glow.warning {
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
}

.empty-icon-glow.warning i {
    color: var(--warning);
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.3));
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.suggestions-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.suggestions-chips span {
    font-size: 13px;
    color: var(--text-muted);
}

.chip-btn {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.chip-btn:hover {
    background-color: rgba(163, 230, 53, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.hidden {
    display: none !important;
}

/* Glass Card */
.card.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Details Column */
.details-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.preview-card {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.preview-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-card h3 i {
    color: var(--primary);
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
    color: var(--text-muted);
    padding: 40px;
    border: 1px dashed rgba(255, 255, 255, 0.04);
    border-radius: 14px;
}

.preview-placeholder i {
    font-size: 40px;
    margin-bottom: 16px;
}

.preview-placeholder p {
    font-size: 13px;
    line-height: 1.5;
    max-width: 250px;
}

.preview-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.badge-code-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.code-badge-large {
    background-color: rgba(163, 230, 53, 0.15);
    color: var(--primary);
    border: 1px solid rgba(163, 230, 53, 0.3);
    padding: 8px 18px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(163, 230, 53, 0.1);
}

.copy-btn-large {
    background-color: var(--primary);
    color: #0b0f19;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.copy-btn-large:hover {
    background-color: #bef264;
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}

.detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.02);
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.detail-breadcrumb i {
    font-size: 10px;
    color: var(--text-muted);
}

.detail-breadcrumb strong {
    color: var(--primary);
}

.detail-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 24px 0;
}

.detail-section h5 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.format-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.nomor-simulasi-box {
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.nomor-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 6px;
}

.nomor-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    word-break: break-all;
}

.highlight-code {
    color: var(--primary);
    background-color: rgba(163, 230, 53, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(163, 230, 53, 0.25);
}

.format-explanation {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.format-explanation li {
    font-size: 12px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 14px;
}

.format-explanation li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Stats Card */
.stats-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-card h3 i {
    color: var(--secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.stat-item {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-item:nth-child(2) .stat-num {
    color: var(--secondary);
}

.stat-item:nth-child(3) .stat-num {
    color: var(--success);
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Explorer Tab Styling */
.explorer-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: calc(100vh - 180px);
}

.section-title-bar h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.section-title-bar p {
    font-size: 14px;
    color: var(--text-secondary);
}

.explorer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 20px;
    flex-grow: 1;
    overflow: hidden;
}

.explorer-panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.explorer-panel h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.01);
}

.panel-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.panel-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
    flex-grow: 1;
    padding: 40px;
    gap: 12px;
}

.panel-empty-state i {
    font-size: 24px;
}

.panel-empty-state p {
    font-size: 12px;
    max-width: 180px;
    line-height: 1.5;
}

/* Explorer Items */
.explorer-item {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.explorer-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.explorer-item.active {
    background-color: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.3);
    color: var(--primary);
}

.explorer-item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    padding-right: 12px;
}

.explorer-item-code {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.explorer-item.active .explorer-item-code {
    color: var(--primary);
}

.explorer-item-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.explorer-item-chevron {
    font-size: 11px;
    color: var(--text-muted);
}

/* Detailed Explorer Item for Level 3 */
.explorer-item-detail {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.explorer-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.explorer-detail-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.explorer-detail-copy {
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition-smooth);
}

.explorer-detail-copy:hover {
    background-color: var(--primary);
    color: #0b0f19;
}

/* History Tab Styling */
.history-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.history-header h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
}

.clear-history-btn {
    background-color: rgba(248, 113, 113, 0.1);
    color: var(--danger);
    border: 1px solid rgba(248, 113, 113, 0.2);
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.clear-history-btn:hover {
    background-color: var(--danger);
    color: white;
}

.history-list-container {
    flex-grow: 1;
    overflow-y: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.history-table th {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

.history-time {
    font-size: 12px;
    color: var(--text-muted);
}

.history-query {
    font-weight: 500;
    color: var(--text-primary);
}

.history-badge-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.history-badge {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-secondary);
}

.history-badge.accent {
    background-color: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.2);
    color: var(--primary);
}

.history-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.history-action-btn:hover {
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #0b0f19;
    border: 1px solid var(--primary);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    color: var(--success);
    font-size: 18px;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Responsive tweaks */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .explorer-layout {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }
    .explorer-container {
        height: auto;
    }
}

/* AI Reasoning Box */
.ai-reasoning-box {
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(163, 230, 53, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}
.ai-reasoning-box i {
    color: var(--primary);
    margin-top: 2px;
}

/* Tombol Lihat di Peta Klasifikasi */
.btn-lihat-peta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 12px;
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.25);
    border-radius: 8px;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    font-family: var(--font-body);
}

.btn-lihat-peta:hover {
    background: rgba(45, 212, 191, 0.18);
    border-color: var(--secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.15);
}

.btn-lihat-peta i {
    font-size: 11px;
}

/* Highlight animation untuk item yang ditemukan di Explorer */
@keyframes explorerHighlight {
    0%   { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6); border-color: var(--secondary); }
    50%  { box-shadow: 0 0 20px 6px rgba(45, 212, 191, 0.3); border-color: var(--secondary); }
    100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); border-color: var(--border-color); }
}

.explorer-item.highlight-target {
    animation: explorerHighlight 1.8s ease 0.2s 2;
    border-color: var(--secondary) !important;
    background-color: rgba(45, 212, 191, 0.08) !important;
}

.explorer-item-detail.highlight-target {
    animation: explorerHighlight 1.8s ease 0.2s 2;
    border-color: var(--secondary) !important;
    background-color: rgba(45, 212, 191, 0.08) !important;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 16px;
    }

    .brand {
        margin-bottom: 20px;
    }

    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .nav-item {
        white-space: nowrap;
        padding: 10px 14px;
    }

    .main-content {
        padding: 16px;
        height: auto;
        overflow: visible;
    }

    .top-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }

    .welcome-text h1 {
        font-size: 24px;
    }

    .welcome-text p {
        font-size: 13px;
    }

    .search-section {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .search-box-container {
        width: 100%;
    }

    #btn-cari {
        width: 100%;
        justify-content: center;
    }

    .history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .explorer-detail {
        position: static;
        margin-top: 20px;
    }
}
