/* 3D Side Hustle Theme for Filebrowser */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;600&display=swap');

:root {
    --primary: #00d4ff !important;
    --accent: #7c3aed !important;
    --success: #00ff88 !important;
    --warning: #ffdd00 !important;
    --danger: #ef4444 !important;
    --background: #0a0a0f !important;
    --background-secondary: #1a1a2e !important;
    --text-primary: #e0e7ff !important;
    --text-secondary: #94a3b8 !important;
    --border: rgba(0, 212, 255, 0.2) !important;
}

/* HIDE SEARCH BAR COMPLETELY */
#search,
.search,
input[type="search"],
input[placeholder="Search..."],
header input,
.searchbox,
[class*="search"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
}

body {
    font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background: #0a0a0f !important;
    color: #e0e7ff !important;
    background-image: 
        radial-gradient(at 0% 0%, rgba(124, 58, 237, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 212, 255, 0.2) 0px, transparent 50%) !important;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif !important;
    color: #00d4ff !important;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5) !important;
}

/* Main container */
#app, main, .container {
    background: transparent !important;
}

/* Sidebar */
aside, .sidebar, nav {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(10, 10, 15, 0.95)) !important;
    border-right: 1px solid rgba(0, 212, 255, 0.3) !important;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1) !important;
}

/* Sidebar links */
aside a, .sidebar a, nav a {
    color: #94a3b8 !important;
    transition: all 0.3s ease !important;
    border-left: 3px solid transparent !important;
}

aside a:hover, .sidebar a:hover, nav a:hover {
    color: #00d4ff !important;
    background: rgba(0, 212, 255, 0.1) !important;
    border-left-color: #00d4ff !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5) !important;
}

aside a.active, .sidebar a.active, nav a.active {
    color: #00d4ff !important;
    background: rgba(0, 212, 255, 0.15) !important;
    border-left-color: #00d4ff !important;
}

/* Header/Toolbar */
header, .header, .toolbar {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(10, 10, 15, 0.8)) !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3) !important;
    backdrop-filter: blur(10px) !important;
}

/* Buttons */
button, .button, .btn, a.button {
    background: linear-gradient(135deg, #00d4ff, #7c3aed) !important;
    color: #0a0a0f !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    font-family: 'Exo 2', sans-serif !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3) !important;
}

button:hover, .button:hover, .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5) !important;
    filter: brightness(1.2) !important;
}

/* Secondary buttons */
button.secondary, .button-secondary {
    background: rgba(0, 212, 255, 0.2) !important;
    color: #00d4ff !important;
    border: 1px solid rgba(0, 212, 255, 0.5) !important;
}

/* Cards and panels */
.card, .panel, .item, article {
    background: rgba(26, 26, 46, 0.6) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
}

.card:hover, .panel:hover, .item:hover {
    border-color: rgba(0, 212, 255, 0.5) !important;
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* File list items */
.item, li, tr {
    border-bottom: 1px solid rgba(0, 212, 255, 0.1) !important;
}

.item:hover, li:hover, tr:hover {
    background: rgba(0, 212, 255, 0.05) !important;
}

/* Icons */
svg, i, .icon {
    color: #00d4ff !important;
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.5)) !important;
}

/* Inputs */
input, textarea, select {
    background: rgba(26, 26, 46, 0.8) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    color: #e0e7ff !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-family: 'Exo 2', sans-serif !important;
}

input:focus, textarea:focus, select:focus {
    border-color: #00d4ff !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3) !important;
    outline: none !important;
}

/* Modals */
.modal, .dialog, .overlay {
    background: rgba(10, 10, 15, 0.95) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: 15px !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

/* Breadcrumbs */
.breadcrumb, .breadcrumbs {
    color: #94a3b8 !important;
}

.breadcrumb a, .breadcrumbs a {
    color: #00d4ff !important;
    text-decoration: none !important;
}

.breadcrumb a:hover, .breadcrumbs a:hover {
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.7) !important;
}

/* Tables */
table {
    background: rgba(26, 26, 46, 0.4) !important;
    border-collapse: collapse !important;
}

th {
    background: rgba(0, 212, 255, 0.1) !important;
    color: #00d4ff !important;
    font-family: 'Orbitron', sans-serif !important;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3) !important;
}

td {
    color: #e0e7ff !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px !important;
    height: 12px !important;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.5) !important;
    border-radius: 6px !important;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00d4ff, #7c3aed) !important;
    border-radius: 6px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed, #00d4ff) !important;
}

/* Success messages */
.success, .alert-success {
    background: rgba(0, 255, 136, 0.2) !important;
    border: 1px solid rgba(0, 255, 136, 0.5) !important;
    color: #00ff88 !important;
}

/* Error messages */
.error, .alert-error, .danger {
    background: rgba(239, 68, 68, 0.2) !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
    color: #ef4444 !important;
}

/* Warning messages */
.warning, .alert-warning {
    background: rgba(255, 221, 0, 0.2) !important;
    border: 1px solid rgba(255, 221, 0, 0.5) !important;
    color: #ffdd00 !important;
}

/* Loading spinner */
.spinner, .loader {
    border-color: rgba(0, 212, 255, 0.2) !important;
    border-top-color: #00d4ff !important;
}

/* Tooltips */
.tooltip, [data-tooltip] {
    background: rgba(26, 26, 46, 0.95) !important;
    color: #00d4ff !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

/* Dropdown menus */
.dropdown, .menu, select {
    background: rgba(26, 26, 46, 0.95) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

.dropdown-item, .menu-item, option {
    color: #e0e7ff !important;
    transition: all 0.2s ease !important;
}

.dropdown-item:hover, .menu-item:hover {
    background: rgba(0, 212, 255, 0.1) !important;
    color: #00d4ff !important;
}

/* Progress bars */
.progress {
    background: rgba(26, 26, 46, 0.6) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.progress-bar {
    background: linear-gradient(90deg, #00d4ff, #7c3aed) !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5) !important;
}

/* Checkbox and radio */
input[type="checkbox"], input[type="radio"] {
    accent-color: #00d4ff !important;
}

/* Links */
a {
    color: #00d4ff !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

a:hover {
    color: #7c3aed !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5) !important;
}

/* Code blocks */
code, pre {
    background: rgba(26, 26, 46, 0.8) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    border-radius: 6px !important;
    color: #00ff88 !important;
    font-family: 'Courier New', monospace !important;
}

/* Scraper Dashboard Styles */
.scraper-section {
    padding: 20px !important;
    background: rgba(10, 10, 15, 0.8) !important;
}

.scraper-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 30px !important;
    padding: 20px !important;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1)) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: 12px !important;
}

.scraper-stats {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
}

.stat-card {
    background: rgba(26, 26, 46, 0.8) !important;
    padding: 20px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    text-align: center !important;
}

.stat-value {
    font-family: 'Orbitron', monospace !important;
    font-size: 2em !important;
    color: #00d4ff !important;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5) !important;
}

.stat-label {
    color: #94a3b8 !important;
    font-size: 0.9em !important;
    margin-top: 8px !important;
}

.file-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
    gap: 20px !important;
}

.scraped-file-card {
    background: rgba(26, 26, 46, 0.9) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.scraped-file-card:hover {
    border-color: rgba(0, 212, 255, 0.5) !important;
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3) !important;
    transform: translateY(-5px) !important;
}

.file-thumbnail {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    background: rgba(10, 10, 15, 0.8) !important;
}

.file-info {
    padding: 20px !important;
}

.file-title {
    font-family: 'Orbitron', monospace !important;
    font-size: 1.2em !important;
    color: #00d4ff !important;
    margin-bottom: 10px !important;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.4) !important;
}

.file-meta {
    display: flex !important;
    justify-content: space-between !important;
    margin: 10px 0 !important;
    color: #94a3b8 !important;
    font-size: 0.9em !important;
}

.file-downloads {
    color: #00ff88 !important;
    font-weight: 600 !important;
}

.file-actions {
    display: flex !important;
    gap: 10px !important;
    margin-top: 15px !important;
}

.btn-import {
    flex: 1 !important;
    background: linear-gradient(135deg, #00d4ff, #00ff88) !important;
    color: #0a0a0f !important;
    border: none !important;
    padding: 12px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.btn-import:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5) !important;
}

.btn-reject {
    flex: 1 !important;
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
    padding: 12px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.btn-reject:hover {
    background: rgba(239, 68, 68, 0.3) !important;
    transform: translateY(-2px) !important;
}

.btn-run-scraper {
    background: linear-gradient(135deg, #7c3aed, #00d4ff) !important;
    color: white !important;
    padding: 12px 30px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.btn-run-scraper:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5) !important;
}

.loading-spinner {
    text-align: center !important;
    padding: 40px !important;
    color: #00d4ff !important;
    font-family: 'Orbitron', monospace !important;
}

.empty-state {
    text-align: center !important;
    padding: 60px !important;
    background: rgba(26, 26, 46, 0.6) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
}

.empty-state h3 {
    font-family: 'Orbitron', monospace !important;
    color: #00d4ff !important;
    margin-bottom: 15px !important;
}

.empty-state p {
    color: #94a3b8 !important;
}
