@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Inter', sans-serif; 
}

/* Deep Midnight Slate Theme - Zero Pink, Low Glare, Eye-Friendly */
body {
    min-height: 100vh;
    background: radial-gradient(circle at 20% 20%, #1e1b4b 0%, transparent 45%),
                radial-gradient(circle at 80% 80%, #0f766e 0%, transparent 40%),
                linear-gradient(135deg, #0b0f19 0%, #111827 50%, #0b0f19 100%);
    background-size: 150% 150%;
    animation: gradientShift 16s ease infinite alternate;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    color: #f1f5f9;
}

@keyframes gradientShift {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.hidden { display: none !important; }
.text-center { text-align: center; font-size: 1.5rem; letter-spacing: 5px; }

/* Dark Frosted Liquid Glass */
.glass-container {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-radius: 24px;
}

.main-wrapper {
    width: 100%;
    max-width: 850px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.header { text-align: center; color: #cbd5e1; }

.shiny-text {
    background: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    font-size: 2.5rem;
    font-weight: 700;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 5px;
}
.tab-btn {
    opacity: 0.6;
    transform: scale(0.95);
    background: rgba(30, 41, 59, 0.7);
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.08);
}
.tab-btn.active {
    opacity: 1;
    transform: scale(1);
    background: linear-gradient(135deg, #0284c7, #0d9488);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.35);
}

/* Glass Panels */
.glass-panel {
    background: rgba(30, 41, 59, 0.45);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.input-group:last-child { margin-bottom: 0; }
label { font-size: 0.88rem; font-weight: 600; color: #94a3b8; letter-spacing: 0.2px; }

/* Dark Slate Inputs & Textarea */
.glass-input, .glass-textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.98rem;
    color: #f8fafc;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}
.glass-input::placeholder, .glass-textarea::placeholder {
    color: #64748b;
}
.glass-input:focus, .glass-textarea:focus {
    background: rgba(15, 23, 42, 0.85);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 12px rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
}
.glass-textarea {
    min-height: 200px;
    resize: vertical;
    font-family: 'JetBrains Mono', Consolas, monospace;
    line-height: 1.5;
}

/* 3D Shiny Buttons */
.actions-panel { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.glass-btn {
    position: relative;
    padding: 12px 24px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.92rem;
    color: #f8fafc;
    cursor: pointer;
    user-select: none;
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2), inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.glass-btn::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 45%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}
.glass-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}
.glass-btn:active {
    transform: translateY(2px) scale(0.97);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Modern Non-straining Palette */
.btn-primary { background: linear-gradient(135deg, #0284c7, #0369a1); }
.btn-info { background: linear-gradient(135deg, #0d9488, #0f766e); }
.btn-warning { background: linear-gradient(135deg, #d97706, #b45309); }
.btn-secondary { background: linear-gradient(135deg, #475569, #334155); }
.btn-danger { background: linear-gradient(135deg, #dc2626, #991b1b); }

/* Bin List */
.bin-list { display: flex; flex-direction: column; gap: 10px; max-height: 400px; overflow-y: auto; padding-right: 5px; }
.bin-list::-webkit-scrollbar { width: 6px; }
.bin-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }
.bin-item {
    background: rgba(15, 23, 42, 0.5);
    padding: 16px 20px;
    border-radius: 14px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    display: flex; justify-content: space-between; align-items: center;
}
.bin-item:hover {
    transform: translateX(6px);
    background: rgba(30, 41, 59, 0.7);
    border-color: #38bdf8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.bin-item-info strong { display: block; color: #f1f5f9; font-size: 1.05rem; margin-bottom: 2px; }
.bin-item-info span { color: #64748b; font-size: 0.8rem; font-family: monospace; }
.bin-item-date { font-size: 0.8rem; color: #94a3b8; background: rgba(255,255,255,0.06); padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }

/* Security Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    animation: fadeIn 0.3s ease forwards;
}
.modal-content {
    padding: 32px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Toast Notifications */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast {
    min-width: 260px; padding: 14px 20px; border-radius: 14px; color: #f8fafc; font-weight: 600; font-size: 0.88rem;
    backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.2);
    animation: slideIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards, fadeOut 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards 2.5s;
    transform: translateX(120%);
}
.toast.success { background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9)); }
.toast.error { background: linear-gradient(135deg, rgba(225, 29, 72, 0.9), rgba(190, 18, 60, 0.9)); }
.toast.info { background: linear-gradient(135deg, rgba(14, 165, 233, 0.9), rgba(2, 132, 199, 0.9)); }
@keyframes slideIn { to { transform: translateX(0); } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-20px) scale(0.9); pointer-events: none; } }