/* Reset và Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #8b5cf6;
    --secondary-color: #64748b;
    --accent-color: #06b6d4;
    --accent-secondary: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --tech-blue: #0ea5e9;
    --tech-purple: #8b5cf6;
    --tech-cyan: #06b6d4;
    --neon-green: #00ff88;
    --neon-blue: #00d4ff;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.tech-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    border-image: linear-gradient(90deg, transparent, var(--primary-color), transparent) 1;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 2rem 2rem;
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    animation: headerShine 3s infinite;
}

@keyframes headerShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.header-content {
    text-align: center;
}

.title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00ff88, #00d4ff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: brightness(1) drop-shadow(0 0 20px rgba(0, 255, 136, 0.3)); }
    100% { filter: brightness(1.2) drop-shadow(0 0 30px rgba(0, 255, 136, 0.6)); }
}

.title i {
    background: linear-gradient(135deg, var(--neon-green), var(--tech-cyan), var(--tech-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: iconSpin 4s linear infinite;
}

@keyframes iconSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Search Section */
.search-section {
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-green), var(--tech-cyan), transparent);
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tech-cyan);
    font-size: 1.25rem;
    animation: searchPulse 2s ease-in-out infinite;
}

@keyframes searchPulse {
    0%, 100% { opacity: 0.7; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.1); }
}

#searchInput {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    font-size: 1.125rem;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 1rem;
    background: rgba(15, 15, 35, 0.8);
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#searchInput:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 
        0 0 20px rgba(0, 255, 136, 0.3),
        0 0 0 3px rgba(0, 255, 136, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: rgba(15, 15, 35, 0.95);
    transform: translateY(-2px);
}

.clear-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    opacity: 0;
    visibility: hidden;
}

.clear-btn:hover {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
}

.clear-btn.visible {
    opacity: 1;
    visibility: visible;
}

.search-filters {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: rgba(15, 15, 35, 0.8);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 1rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover {
    background: rgba(15, 15, 35, 0.9);
    border-color: var(--tech-cyan);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--tech-purple));
    border-color: var(--neon-green);
    color: white;
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.4),
        0 0 20px rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-green), var(--tech-cyan), var(--tech-purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 20px 40px rgba(99, 102, 241, 0.3),
        0 0 20px rgba(0, 255, 136, 0.2);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--neon-green), var(--tech-cyan));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Loading Animation */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 136, 0.1) 50%, transparent 70%);
    animation: loadingShimmer 2s infinite;
}

@keyframes loadingShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.loading-spinner {
    width: 4rem;
    height: 4rem;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top: 4px solid var(--neon-green);
    border-right: 4px solid var(--tech-cyan);
    border-radius: 50%;
    animation: spinGlow 1s linear infinite;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

@keyframes spinGlow {
    0% { 
        transform: rotate(0deg);
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
    }
    100% { 
        transform: rotate(360deg);
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    }
}

.loading p {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 1.125rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.loading.hidden {
    display: none;
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    perspective: 1000px;
}

.item-card {
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: techPulse 4s ease-in-out infinite;
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-green), var(--tech-cyan), var(--tech-purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.item-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.item-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(99, 102, 241, 0.3),
        0 0 20px rgba(0, 255, 136, 0.2),
        0 0 0 1px rgba(0, 255, 136, 0.3);
    border-color: var(--neon-green);
    animation: none;
}

.item-card:hover::before {
    transform: scaleX(1);
}

.item-card:hover::after {
    left: 100%;
}

@keyframes techPulse {
    0%, 100% { 
        box-shadow: 
            0 8px 32px rgba(99, 102, 241, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 
            0 8px 32px rgba(99, 102, 241, 0.25),
            0 0 20px rgba(0, 255, 136, 0.1);
    }
}

.item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.item-icon {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease, opacity 0.3s ease;
    will-change: transform, opacity;
}

.item-icon:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.item-icon.error {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.5rem;
    animation: shake 0.5s ease;
}

.item-icon.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-lg);
}

.item-icon.loaded {
    animation: fadeIn 0.3s ease;
}

.item-icon.lazy {
    opacity: 0;
    transform: scale(0.8);
}

.item-icon.lazy.loaded {
    opacity: 1;
    transform: scale(1);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-id {
    font-size: 0.75rem;
    color: var(--tech-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    background: rgba(6, 182, 212, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(6, 182, 212, 0.3);
    display: inline-block;
}

.item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    line-height: 1.4;
    word-break: break-word;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.copy-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    color: white;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    border-color: #059669;
}

.copy-btn.copied {
    background: linear-gradient(135deg, #10b981, #34d399);
    animation: pulse 0.6s ease;
}

.copy-btn.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    animation: shake 0.5s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.load-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.load-more-container.hidden {
    display: none;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.no-results.hidden {
    display: none;
}

.no-results-icon {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
}

.no-results h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.no-results p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    font-weight: 500;
}

/* Advanced Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(15deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.item-card.new {
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid;
    min-width: 300px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.toast-success {
    border-left-color: var(--success-color);
}

.toast.toast-error {
    border-left-color: var(--danger-color);
}

.toast.toast-info {
    border-left-color: var(--primary-color);
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.toast-message {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

/* Advanced Dashboard */
.advanced-dashboard {
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    overflow: hidden;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.dashboard-header h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-header h3 i {
    color: var(--tech-cyan);
    font-size: 1.125rem;
}

.dashboard-toggle {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.75rem;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-toggle:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
}

.dashboard-toggle.active {
    transform: rotate(180deg);
}

.dashboard-content {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.dashboard-content.expanded {
    max-height: 500px;
    opacity: 1;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.control-select {
    background: rgba(15, 15, 35, 0.8);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.75rem;
    color: white;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.control-select:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    transform: translateY(-1px);
}

.control-select option {
    background: rgba(15, 15, 35, 0.95);
    color: white;
    padding: 0.5rem;
}

.control-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: 2px solid;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.control-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--tech-purple));
    border-color: var(--primary-color);
    color: white;
}

.control-btn.primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.control-btn.secondary {
    background: rgba(15, 15, 35, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.control-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}

/* Progress Bar */
.progress-container {
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.progress-container.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-label {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.progress-percentage {
    color: var(--tech-cyan);
    font-weight: 700;
    font-size: 1.125rem;
    font-family: var(--font-mono);
}

.progress-bar {
    position: relative;
    height: 0.75rem;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 0.375rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--tech-cyan), var(--tech-purple));
    border-radius: 0.375rem;
    transition: width 0.3s ease;
    position: relative;
    width: 0%;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.4), transparent);
    border-radius: 0.375rem;
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.progress-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.progress-details span {
    color: rgba(255, 255, 255, 0.8);
}

.progress-speed {
    color: var(--tech-cyan) !important;
    font-family: var(--font-mono);
    font-weight: 600;
}

/* Preload indicator */
.preload-indicator {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: rgba(37, 99, 235, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    z-index: 100;
}

.preload-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-section {
        padding: 1.5rem;
    }
    
    .search-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .control-actions {
        flex-direction: column;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .item-card {
        padding: 1rem;
    }
    
    .item-header {
        gap: 0.75rem;
    }
    
    .item-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    #searchInput {
        font-size: 1rem;
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    }
    
    .search-icon {
        font-size: 1rem;
        left: 0.875rem;
    }
    
    .item-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Scroll Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection Styling */
::selection {
    background: rgba(37, 99, 235, 0.2);
    color: var(--text-primary);
}

/* Focus Styling */
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
