* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
body { background-color: #0b0f19; color: #e2e8f0; height: 100vh; overflow: hidden; }
.app-container { display: flex; height: 100vh; width: 100vw; }

/* Utilities */
.flex-row { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-header { display: flex; justify-content: space-between; align-items: center; }
.mt-1rem { margin-top: 1rem; }
.mt-auto { margin-top: auto; }

/* Sidebar */
.sidebar { width: 260px; background: rgba(5, 7, 13, 0.4); backdrop-filter: blur(15px); border-right: 1px solid rgba(255, 255, 255, 0.05); padding: 24px; display: flex; flex-direction: column; z-index: 10;}
.brand { font-size: 26px; font-weight: 800; display: flex; align-items: center; gap: 12px; margin-bottom: 30px; color: #fff; letter-spacing: -1px;}
.brand i { color: #a855f7; font-size: 32px; }
.brand span span { color: #a855f7; }

.menu-label { font-size: 11px; font-weight: 700; color: #475569; letter-spacing: 1px; margin-bottom: 12px; padding-left: 10px; }
.menu { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto;}

.menu-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; cursor: pointer; transition: all 0.2s ease; color: #94a3b8; font-weight: 500; font-size: 14.5px;}
.menu-item:hover { background: rgba(255, 255, 255, 0.05); color: #e2e8f0; }
.menu-item.active { background: rgba(168, 85, 247, 0.15); color: #a855f7; font-weight: 600;}
.menu-item i { font-size: 20px; }

/* Main Content */
.main-content { flex: 1; display: flex; flex-direction: column; background: #0b0f19; position: relative;}
.main-content::before { content: ''; position: absolute; top:-50%; left:-50%; width: 100vw; height: 100vw; background: radial-gradient(circle, rgba(168,85,247,0.05) 0%, transparent 50%); z-index: 0; pointer-events:none;}

/* Header */
.header { height: 70px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(11, 15, 25, 0.8); backdrop-filter: blur(10px); z-index: 10;}
.search-bar { display: flex; align-items: center; background: rgba(255, 255, 255, 0.03); border-radius: 8px; padding: 10px 16px; width: 350px; border: 1px solid rgba(255, 255, 255, 0.08); transition: all 0.3s; }
.search-bar:focus-within { border-color: #a855f7; background: rgba(255, 255, 255, 0.06); }
.search-bar i { color: #64748b; margin-right: 12px; font-size: 18px; }
.search-bar input { background: transparent; border: none; color: #fff; outline: none; width: 100%; font-size: 14px; }

.header-badge { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #22c55e; background: rgba(34, 197, 94, 0.1); padding: 8px 16px; border-radius: 20px; font-weight: 600;}

/* Workspace & Routing */
.workspace { flex: 1; padding: 30px 40px; overflow-y: auto; z-index: 1; position: relative;}
.tool-view { display: none; height: 100%; flex-direction: column; }
.tool-view.active { display: flex; animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.tool-header { margin-bottom: 30px; }
.tool-header h2 { font-size: 28px; color: #fff; margin-bottom: 6px; display:flex; align-items:center; gap:10px;}
.tool-header h2 i { color: #a855f7; }
.tool-header p { color: #94a3b8; font-size: 15px; }

/* Form Elements */
.modern-input { width: 100%; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 16px; color: #fff; outline: none; transition: border 0.3s; font-size: 15px; resize: vertical; }
.modern-input:focus { border-color: #a855f7; background: rgba(255, 255, 255, 0.05); }
label { display: block; margin-bottom: 8px; color: #cbd5e1; font-size: 14px; font-weight: 500; }
select.modern-input option { background: #0b0f19; color: #ffffff; }

.custom-checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 10px; border-radius: 8px; transition: background 0.2s; }
.custom-checkbox:hover { background: rgba(255,255,255,0.05); }

/* Buttons */
.btn { padding: 12px 24px; border-radius: 10px; border: none; cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: all 0.2s ease; font-size: 14.5px; }
.btn-primary { background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%); color: white; box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4); transform: translateY(-2px); }
.btn-secondary { background: rgba(255,255,255,0.05); color: #e2e8f0; border: 1px solid rgba(255,255,255,0.1); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* Dashboard Grid */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tool-card { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 16px; padding: 24px; cursor: pointer; transition: all 0.3s ease; }
.tool-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.04); border-color: rgba(168, 85, 247, 0.3); }
.tool-card .t-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.tool-card h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.tool-card p { color: #94a3b8; font-size: 14px; line-height: 1.5; }

/* Structural Layouts */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; height: 100%; }
.input-panel, .output-panel { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 16px; padding: 30px; }
.t-workspace-box { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 16px; overflow: hidden; height: 100%; display: flex; flex-direction: column; }

/* Stats Card */
.stat-card { background: rgba(0,0,0,0.2); border-radius: 12px; padding: 20px; text-align: center; border: 1px solid rgba(255,255,255,0.03); }
.stat-card h3 { color: #94a3b8; font-size: 14px; font-weight: 500; text-transform: uppercase; margin-bottom: 8px; }
.stat-value { font-size: 36px; font-weight: 700; color: #a855f7; }

/* Empty State used universally */
.empty-state { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #64748b; padding: 40px;}
.empty-icon { width: 100px; height: 100px; background: rgba(168, 85, 247, 0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.empty-icon i { font-size: 50px; color: #a855f7; }
.empty-state h3 { color: #fff; font-size: 22px; margin-bottom: 10px; }

/* File Browser Specifics (ZArchive) */
.breadcrumb { padding: 14px 24px; background: rgba(0, 0, 0, 0.3); display: flex; align-items: center; gap: 8px; font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.crumb { color: #a855f7; cursor: pointer; font-weight: 500; }
.crumb:hover { color: #d8b4fe; }
.file-list-header { display: flex; padding: 12px 24px; background: rgba(255, 255, 255, 0.03); font-size: 12px; text-transform: uppercase; color: #94a3b8; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-weight: 600; }
.col-name { flex: 2; } .col-size { flex: 1; text-align: right; } .col-action { flex: 1; text-align: right; padding-right: 20px; }
.file-list { flex: 1; overflow-y: auto; }
.file-item { display: flex; padding: 14px 24px; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.02); }
.file-item:hover { background: rgba(255, 255, 255, 0.04); }
.file-name-col { flex: 2; display: flex; align-items: center; gap: 12px; cursor: pointer; color:#f1f5f9; font-weight: 500;}
.file-icon { font-size: 24px; color: #cbd5e1; }
.file-icon.folder { color: #fbbf24; }
.file-size-col { flex: 1; text-align: right; color: #64748b; font-size: 13px; }
.file-action-col { flex: 1; text-align: right; }
.btn-extract { background: rgba(168, 85, 247, 0.1); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.3); padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 12px; transition: all 0.2s; }
.btn-extract:hover { background: #a855f7; color: #fff; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }
