/* ═══════════════════════════════════════════════════════════════
   AEGIS Shield — Sandbox Styles
   Sandbox Tabs, Text Preview, Separated View
   Author: Claude & Tom Sanders | Silicon Networks
   ═══════════════════════════════════════════════════════════════ */

/* Sandbox Tabs */
.aegis-sandbox-tabs { display: flex; gap: 8px; background: rgba(0,0,0,0.2); padding: 4px; border-radius: 8px; }
.aegis-sandbox-tab { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border: none; background: transparent; color: var(--aegis-text-muted); font-size: 13px; font-weight: 500; border-radius: 6px; cursor: pointer; transition: all 0.2s ease; }
.aegis-sandbox-tab:hover { background: rgba(255,255,255,0.05); color: var(--aegis-text); }
.aegis-sandbox-tab.active { background: var(--aegis-accent); color: #fff; }
.aegis-sandbox-tab svg { width: 16px; height: 16px; }
.aegis-sandbox-tab.active svg path, .aegis-sandbox-tab.active svg rect, .aegis-sandbox-tab.active svg circle { stroke: #fff; }

/* Empty State */
.aegis-sandbox-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; opacity: 0.6; }
.aegis-sandbox-empty-icon { margin-bottom: 16px; }
.aegis-sandbox-empty-icon svg { width: 48px; height: 48px; opacity: 0.5; }
.aegis-sandbox-empty-text { font-size: 16px; font-weight: 600; color: var(--aegis-text); margin-bottom: 8px; }
.aegis-sandbox-empty-hint { font-size: 13px; color: var(--aegis-text-muted); }

/* Text Preview */
.aegis-text-preview { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 12px; margin: 12px 0; }
.aegis-text-preview-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--aegis-text-muted); margin-bottom: 10px; }
.aegis-text-preview-title svg { width: 14px; height: 14px; }
.aegis-text-preview-content { max-height: 200px; overflow: auto; font-size: 11px; line-height: 1.5; color: #222; background: rgba(255,255,255,0.95); border-radius: 6px; padding: 10px; }
/* Glasmorph Scrollbar fuer E-Mail Inhalt Preview */
.aegis-text-preview-content::-webkit-scrollbar { width: 10px; height: 10px; }
.aegis-text-preview-content::-webkit-scrollbar-track { background: rgba(0,0,0,0.06); border-radius: 5px; }
.aegis-text-preview-content::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.45); border-radius: 5px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.15); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.aegis-text-preview-content::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.65); }
.aegis-text-preview-content::-webkit-scrollbar-corner { background: transparent; }
.aegis-text-preview-content a { color: #666 !important; text-decoration: line-through !important; pointer-events: none !important; cursor: not-allowed !important; display: inline-flex; align-items: center; gap: 4px; background: rgba(255,59,48,0.08); padding: 2px 6px; border-radius: 3px; margin: 2px 0; }
.aegis-text-preview-content a::before { content: '🔗 Link:'; color: #888; font-size: 9px; font-weight: 600; text-decoration: none !important; }
.aegis-text-preview-content a::after { content: ' [BLOCKIERT]'; color: var(--aegis-danger); font-size: 9px; font-weight: 600; text-decoration: none !important; }

/* Sections */
.aegis-sandbox-emails-section { }
.aegis-sandbox-attachments-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.aegis-sandbox-emails-header { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--aegis-accent); margin-bottom: 16px; }
.aegis-sandbox-emails-header svg { width: 18px; height: 18px; }

/* View Toggle */
.aegis-sandbox-view-toggle { display: flex; gap: 6px; margin-left: 12px; padding: 4px; }
.aegis-view-btn { background: transparent; border: none; padding: 4px 6px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; opacity: 0.5; }
.aegis-view-btn:hover { opacity: 0.8; }
.aegis-view-btn.active { opacity: 1; }
.aegis-view-btn.active svg rect { opacity: 1; }

/* Separated View (Rot links, Grün rechts) */
.aegis-sandbox-separated { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px; }
.aegis-sandbox-column { display: flex; flex-direction: column; gap: 16px; }
.aegis-sandbox-column-header { font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 8px; text-align: center; }
.aegis-sandbox-column-header.danger { background: rgba(239, 68, 68, 0.1); color: var(--aegis-danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.aegis-sandbox-column-header.safe { background: rgba(16, 185, 129, 0.1); color: var(--aegis-success); border: 1px solid rgba(16, 185, 129, 0.3); }
.aegis-sandbox-empty { text-align: center; color: var(--aegis-text-muted); font-size: 13px; padding: 40px 20px; background: var(--aegis-glass); border-radius: 12px; border: 1px dashed var(--aegis-glass-border); }


/* Sandbox Toolbar — Multi-Select */
.aegis-sandbox-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; margin: 0 20px; border-bottom: 1px solid var(--aegis-glass-border); }
.aegis-sandbox-toolbar-left { display: flex; align-items: center; gap: 10px; }
.aegis-sandbox-toolbar-right { display: flex; align-items: center; gap: 8px; }
.aegis-sandbox-section-label { font-size: 13px; font-weight: 600; padding: 8px 20px; letter-spacing: 0.5px; text-transform: uppercase; }
.aegis-attachment-card.selected { outline: 2px solid var(--aegis-accent); outline-offset: -2px; }
