:root { --salutis-red:#dc3545; --bg-main:#1a1a1a; --bg-sidebar:#212121; --bg-card:#2d2d2d; --bg-input:#383838; --border-color:#484848; --text-primary:#f0f0f0; --text-muted:#bcbcbc; }
body { background: var(--bg-main); color: var(--text-primary); font-family: 'Segoe UI', sans-serif; height: 100vh; overflow: hidden; }
.app-container { display: flex; height: calc(100vh - 96px); }

.sidebar { width: 320px; background: var(--bg-sidebar); border-right: 1px solid var(--border-color); overflow-y: auto; padding: 15px; }
.collection-group { margin-bottom: 5px; }
.collection-header { 
    color: #ffc107 !important; font-weight: bold; text-transform: uppercase; font-size: 0.75rem; 
    padding: 8px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    transition: background 0.2s; border: 1px solid transparent;
}
.collection-header:hover { background: rgba(255,193,7,0.1); }
.collection-header.drag-over { background: rgba(255, 193, 7, 0.2); border-color: #ffc107; border-style: dashed; }
.collection-header span, .collection-header i { pointer-events: none; }
.collection-header i.chevron { transition: transform 0.3s; font-size: 0.7rem; }
.collection-header.collapsed i.chevron { transform: rotate(-90deg); }
.collection-content { display: block; padding-left: 10px; }
.collection-content.collapsed { display: none; }

.tabs-wrapper { display: flex; background: #000; padding: 6px 15px 0 15px; border-bottom: 1px solid var(--border-color); align-items: center; overflow-x: auto; }
.api-tab { 
    background: #222; color: #aaa; padding: 8px 15px; border-radius: 8px 8px 0 0; 
    margin-right: 5px; font-size: 0.75rem; cursor: pointer; display: flex; align-items: center;
    border: 1px solid var(--border-color); border-bottom: none; min-width: 140px; max-width: 220px;
}
.api-tab.active { background: var(--bg-card); color: #fff; font-weight: bold; border-bottom: 2px solid var(--salutis-red); }
.api-tab .close-tab { margin-left: auto; padding-left: 10px; opacity: 0.5; font-size: 0.7rem; }
.api-tab .close-tab:hover { opacity: 1; color: var(--salutis-red); }
.btn-new-tab { background: transparent; border: none; color: #777; padding: 5px 12px; border-radius: 50%; transition: 0.2s; }
.btn-new-tab:hover { color: #fff; background: #333; }

.main-content { flex: 1; overflow-y: auto; padding: 20px; background: var(--bg-main); }
.navbar { background: #000; border-bottom: 1px solid var(--border-color); z-index: 1050; position: relative; }
.card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.4); }
.form-control, .form-select { background: var(--bg-input) !important; border: 1px solid var(--border-color) !important; color: #fff !important; font-size: 0.85rem; }

.api-tab-header { background: var(--bg-card); padding: 8px 15px; border-radius: 8px; display: inline-flex; align-items: center; border: 1px solid var(--border-color); margin-bottom: 15px; }
.api-name-input { background: transparent; border: none; color: #fff; font-weight: bold; width: 300px; outline: none; font-size: 1.1rem; }

.response-container { position: relative; margin-top: 10px; }
.btn-copy-raw { position: absolute; top: 12px; right: 12px; z-index: 10; font-size: 0.7rem; padding: 4px 10px; background: #222; border: 1px solid #444; color: #ccc; cursor: pointer; border-radius: 4px; }
.btn-copy-raw:hover { background: #333; color: #fff; }
pre { background: #000; color: #50fa7b; padding: 15px; border-radius: 6px; font-size: 0.85rem; border: 1px solid var(--border-color); min-height: 200px; white-space: pre-wrap; word-break: break-all; }

.saved-item { padding: 8px 12px; border-radius: 6px; font-size: 0.85rem; cursor: grab; margin-bottom: 2px; transition: 0.2s; color: var(--text-primary); border-left: 3px solid transparent; }
.saved-item:hover { background: var(--bg-input); }
.saved-item.active { background: #3d3d3d; border-left-color: var(--salutis-red); }
.method-badge { font-size: 0.65rem; font-weight: 800; width: 42px; display: inline-block; }
.action-icons i { opacity: 0.6; transition: 0.2s; cursor: pointer; }
.action-icons i:hover { opacity: 1; transform: scale(1.1); }

#st-badge { font-size: 0.75rem; padding: 5px 12px; border-radius: 20px; font-weight: bold; }
.bg-status-success { background-color: #198754 !important; color: #fff !important; }
.bg-status-error { background-color: #dc3545 !important; color: #fff !important; }
#time-badge, #size-badge { color: #ffc107 !important; font-weight: 600; font-size: 0.8rem; display: flex; align-items: center; }
#time-badge i, #size-badge i { color: #ffc107; margin-right: 4px; }

footer { background: #000; height: 40px; border-top: 1px solid var(--border-color); position: fixed; bottom: 0; width: 100%; text-align: center; line-height: 40px; font-size: 0.7rem; color: #555; }
.toastify { z-index: 9999 !important; margin-top: 60px; font-family: 'Segoe UI', sans-serif; }