* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Светлая тема */
body.light-theme {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
}

body.light-theme .container {
    background: white;
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
}

body.light-theme .sidebar {
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
}

body.light-theme .endpoint-item {
    background: white;
    border: 1px solid #e0e0e0;
}

body.light-theme .endpoint-details {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

body.light-theme .parameter {
    background: #f8f9fa;
}

/* Тёмная тема */
body.dark-theme {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
}

body.dark-theme .container {
    background: #1e1e2e;
    box-shadow: 0 0 50px rgba(0,0,0,0.3);
}

body.dark-theme .sidebar {
    background: #252535;
    border-right: 1px solid #3a3a4a;
}

body.dark-theme .endpoint-item {
    background: #2a2a3a;
    border: 1px solid #3a3a4a;
}

body.dark-theme .endpoint-item:hover {
    background: #3a3a4a;
}

body.dark-theme .endpoint-item.selected {
    background: #3a4a6a;
    border-color: #4a7bff;
}

body.dark-theme .endpoint-details {
    background: #2a2a3a;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

body.dark-theme .parameter {
    background: #353545;
}

body.dark-theme .param-value,
body.dark-theme .form-group input,
body.dark-theme .form-group textarea,
body.dark-theme .form-group select {
    background: #2a2a3a;
    border-color: #4a4a5a;
    color: #e0e0e0;
}

body.dark-theme #response-output {
    background: #1e1e1e;
    color: #d4d4d4;
    border-color: #3a3a3a;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    min-height: 100vh;
}

header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #3498db;
}

body.light-theme header {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
    color: white;
}

body.dark-theme header {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    color: #e0e0e0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

header h1 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

#theme-toggle {
    padding: 8px 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

#theme-toggle:hover {
    background: #2980b9;
}

.auth-section {
    display: flex;
    gap: 15px;
    align-items: center;
}

.auth-section input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

body.dark-theme .auth-section input {
    background: #2a2a3a;
    border-color: #4a4a5a;
    color: #e0e0e0;
}

.auth-section button {
    padding: 8px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.auth-section button:hover {
    background: #2980b9;
}

#user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

#current-user {
    font-weight: 600;
    color: #2ecc71;
}

body.dark-theme #current-user {
    color: #4ade80;
}

.main-content {
    display: flex;
    min-height: calc(100vh - 140px);
}

.sidebar {
    width: 350px;
    padding: 20px;
    overflow-y: auto;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section input,
.filter-section select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

body.dark-theme .filter-section input,
body.dark-theme .filter-section select {
    background: #2a2a3a;
    border-color: #4a4a5a;
    color: #e0e0e0;
}

/* Управление группами - ДОБАВЛЕНО ЗДЕСЬ */
.group-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.group-controls button {
    padding: 8px 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
    flex: 1;
}

.group-controls button:hover {
    background: #2980b9;
}

.group-controls button:last-child {
    background: #9b59b6;
}

.group-controls button:last-child:hover {
    background: #8e44ad;
}

.endpoints-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.endpoint-group {
    margin-bottom: 15px;
}

.group-header {
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    position: relative;
}

body.light-theme .group-header {
    background: #e3f2fd;
    color: #2c3e50;
}

body.dark-theme .group-header {
    background: #2a3a4a;
    color: #e0e0e0;
}

.group-header:hover {
    opacity: 0.9;
}

.group-toggle {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform 0.2s;
}

.group-toggle:hover {
    transform: scale(1.1);
}

.group-toggle i {
    font-size: 12px;
}

.group-icon {
    color: #f39c12;
}

body.dark-theme .group-icon {
    color: #f1c40f;
}

.group-title {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
}

.group-count {
    font-size: 12px;
    opacity: 0.7;
}

.group-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 10px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Плавная анимация сворачивания/разворачивания */
.group-content.collapsing {
    max-height: 0;
    opacity: 0;
}

.group-content.expanding {
    max-height: 1000px;
    opacity: 1;
}

.endpoint-item {
    padding: 12px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.light-theme .endpoint-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-color: #3498db;
}

body.dark-theme .endpoint-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    border-color: #4a7bff;
}

body.light-theme .endpoint-item.selected {
    border-color: #3498db;
    background: #e3f2fd;
}

body.dark-theme .endpoint-item.selected {
    border-color: #4a7bff;
    background: #3a4a6a;
}

.method-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    margin-right: 10px;
    min-width: 50px;
    text-align: center;
}

.method-get { background: #61affe; color: white; }
.method-post { background: #49cc90; color: white; }
.method-put { background: #fca130; color: white; }
.method-delete { background: #f93e3e; color: white; }

.endpoint-path {
    font-weight: 600;
    word-break: break-word;
}

body.light-theme .endpoint-path {
    color: #333;
}

body.dark-theme .endpoint-path {
    color: #e0e0e0;
}

.endpoint-desc {
    font-size: 12px;
    margin-top: 5px;
}

body.light-theme .endpoint-desc {
    color: #666;
}

body.dark-theme .endpoint-desc {
    color: #aaa;
}

.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.endpoint-details {
    border-radius: 8px;
    padding: 30px;
}

.endpoint-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid;
    flex-wrap: wrap;
}

body.light-theme .endpoint-title {
    border-color: #f0f0f0;
}

body.dark-theme .endpoint-title {
    border-color: #3a3a4a;
}

.endpoint-title h2 {
    font-size: 1.5rem;
    margin-right: 15px;
}

body.light-theme .endpoint-title h2 {
    color: #2c3e50;
}

body.dark-theme .endpoint-title h2 {
    color: #e0e0e0;
}

.auth-badge {
    display: inline-block;
    padding: 4px 10px;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 5px;
}

.auth-badge.required { background: #ff6b6b; }
.auth-badge.admin { background: #9b59b6; }
.auth-badge.basic { background: #f39c12; }

.copy-curl-btn {
    padding: 8px 15px;
    background: #9b59b6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.copy-curl-btn:hover {
    background: #8e44ad;
}

.endpoint-description {
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 15px;
}

body.light-theme .endpoint-description {
    color: #555;
}

body.dark-theme .endpoint-description {
    color: #bbb;
}

.auth-warning {
    color: #e74c3c;
    margin-top: 10px;
}

body.dark-theme .auth-warning {
    color: #ff6b6b;
}

.endpoint-schema {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 6px;
}

body.light-theme .endpoint-schema {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

body.dark-theme .endpoint-schema {
    background: #2a2a3a;
    border: 1px solid #3a3a4a;
}

.endpoint-schema h3 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.schema-content {
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.schema-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.schema-method {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.schema-path {
    font-weight: 600;
}

.schema-auth, .schema-params {
    font-size: 12px;
    margin-left: 20px;
    color: #666;
}

body.dark-theme .schema-auth,
body.dark-theme .schema-params {
    color: #aaa;
}

.parameters-section {
    margin-bottom: 30px;
}

.parameters-section h3 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.parameter {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 15px;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    align-items: center;
}

.param-info {
    display: flex;
    flex-direction: column;
}

.param-name {
    font-weight: 600;
}

body.light-theme .param-name {
    color: #2c3e50;
}

body.dark-theme .param-name {
    color: #e0e0e0;
}

.param-type {
    font-size: 12px;
    margin-top: 2px;
}

body.light-theme .param-type {
    color: #7f8c8d;
}

body.dark-theme .param-type {
    color: #aaa;
}

.required-badge {
    color: #e74c3c;
}

body.dark-theme .required-badge {
    color: #ff6b6b;
}

.optional-badge {
    color: #7f8c8d;
}

body.dark-theme .optional-badge {
    color: #aaa;
}

.param-value {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.boolean-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #3498db;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 1px #3498db;
}

.test-section {
    margin-top: 30px;
}

.test-section h3 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.light-theme .test-section h3 {
    color: #2c3e50;
}

body.dark-theme .test-section h3 {
    color: #e0e0e0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

body.light-theme .form-group label {
    color: #34495e;
}

body.dark-theme .form-group label {
    color: #e0e0e0;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.curl-container {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

body.light-theme .curl-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

body.dark-theme .curl-container {
    background: #2a2a3a;
    border: 1px solid #3a3a4a;
}

#curl-command {
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 200px;
    overflow-y: auto;
    margin: 0;
}

body.light-theme #curl-command {
    background: #f8f9fa;
    color: #333;
}

body.dark-theme #curl-command {
    background: #2a2a3a;
    color: #d4d4d4;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #2980b9;
}

.execute-btn {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s;
}

.execute-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.execute-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.auth-hint {
    font-size: 12px;
    margin-left: 10px;
    opacity: 0.8;
}

.response-section {
    margin-top: 40px;
    border-radius: 8px;
    padding: 25px;
}

body.light-theme .response-section {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

body.dark-theme .response-section {
    background: #2a2a3a;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.response-section h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.light-theme .response-section h3 {
    color: #2c3e50;
}

body.dark-theme .response-section h3 {
    color: #e0e0e0;
}

.response-info {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: center;
}

.status-code {
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.status-2xx { background: #d4edda; color: #155724; }
.status-4xx { background: #f8d7da; color: #721c24; }
.status-5xx { background: #fff3cd; color: #856404; }

.response-time {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

body.light-theme .response-time {
    color: #7f8c8d;
}

body.dark-theme .response-time {
    color: #aaa;
}

footer {
    text-align: center;
    padding: 15px;
    font-size: 14px;
}

body.light-theme footer {
    background: #2c3e50;
    color: white;
}

body.dark-theme footer {
    background: #0f3460;
    color: #e0e0e0;
}

.welcome-message {
    text-align: center;
    padding: 40px 20px;
}

.welcome-message h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

body.light-theme .welcome-message h2 {
    color: #2c3e50;
}

body.dark-theme .welcome-message h2 {
    color: #e0e0e0;
}

.welcome-message p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
}

body.light-theme .welcome-message p {
    color: #555;
}

body.dark-theme .welcome-message p {
    color: #bbb;
}

.welcome-message ul {
    text-align: left;
    display: inline-block;
    margin: 20px 0;
}

.welcome-message li {
    margin-bottom: 10px;
}

body.light-theme .welcome-message li {
    color: #2c3e50;
}

body.dark-theme .welcome-message li {
    color: #e0e0e0;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Стили для работы с файлами */
.file-upload-section {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
}

body.light-theme .file-upload-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

body.dark-theme .file-upload-section {
    background: #2a2a3a;
    border: 1px solid #3a3a4a;
}

.file-input {
    padding: 10px;
    border: 2px dashed #3498db;
    border-radius: 6px;
    width: 100%;
    background: transparent;
    cursor: pointer;
}

body.light-theme .file-input {
    background: white;
}

body.dark-theme .file-input {
    background: #353545;
}

.file-input:hover {
    border-color: #2980b9;
}

.file-hint {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

body.dark-theme .file-hint {
    color: #aaa;
}

.files-list {
    margin-top: 20px;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.file-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

body.light-theme .file-card {
    background: white;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

body.dark-theme .file-card {
    background: #2a2a3a;
    border: 1px solid #3a3a4a;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

body.dark-theme .file-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.file-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.light-theme .file-header {
    background: #e3f2fd;
}

body.dark-theme .file-header {
    background: #3a4a6a;
}

.file-actions {
    display: flex;
    gap: 5px;
}

.file-action-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s;
}

body.light-theme .file-action-btn:hover {
    background: rgba(0,0,0,0.1);
}

body.dark-theme .file-action-btn:hover {
    background: rgba(255,255,255,0.1);
}

.file-body {
    padding: 15px;
}

.file-name {
    font-weight: 600;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.light-theme .file-name {
    color: #2c3e50;
}

body.dark-theme .file-name {
    color: #e0e0e0;
}

.file-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 10px;
}

body.light-theme .file-info {
    color: #7f8c8d;
}

body.dark-theme .file-info {
    color: #aaa;
}

.file-desc {
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.4;
}

body.light-theme .file-desc {
    color: #555;
}

body.dark-theme .file-desc {
    color: #bbb;
}

.file-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.tag {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

body.light-theme .tag {
    background: #e3f2fd;
    color: #3498db;
}

body.dark-theme .tag {
    background: #3a4a6a;
    color: #4a7bff;
}

.file-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    border-top: 1px solid;
    padding-top: 10px;
}

body.light-theme .file-meta {
    color: #95a5a6;
    border-color: #ecf0f1;
}

body.dark-theme .file-meta {
    color: #888;
    border-color: #3a3a4a;
}

/* Статистика файлов */
.file-stats {
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

body.light-theme .stat-card {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
}

body.dark-theme .stat-card {
    background: #2a3a4a;
    border: 1px solid #3a4a5a;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

body.light-theme .stat-value {
    color: #3498db;
}

body.dark-theme .stat-value {
    color: #4a7bff;
}

.stat-label {
    font-size: 14px;
    color: #7f8c8d;
}

body.dark-theme .stat-label {
    color: #aaa;
}

.stats-table {
    margin: 15px 0;
}

.stats-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 10px;
    border-bottom: 1px solid;
}

body.light-theme .stats-row {
    border-color: #ecf0f1;
}

body.dark-theme .stats-row {
    border-color: #3a3a4a;
}

.stats-row:last-child {
    border-bottom: none;
}

.stats-cell {
    padding: 5px;
}

body.light-theme .stats-cell {
    color: #2c3e50;
}

body.dark-theme .stats-cell {
    color: #e0e0e0;
}

.stats-row:first-child .stats-cell {
    font-weight: bold;
}

body.light-theme .stats-row:first-child {
    background: #f8f9fa;
}

body.dark-theme .stats-row:first-child {
    background: #2a2a3a;
}

/* Группа для файловых операций */
.file-operations-group .group-header {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
}

body.dark-theme .file-operations-group .group-header {
    background: linear-gradient(135deg, #8e44ad 0%, #732d91 100%);
}

/* Медиа-запросы для файлов */
@media (max-width: 768px) {
    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .parameter {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .boolean-toggle {
        justify-content: flex-end;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-left {
        flex-direction: column;
        gap: 10px;
    }
    
    .auth-section {
        flex-direction: column;
        width: 100%;
    }
    
    .auth-section input {
        width: 100%;
    }
    
    .endpoint-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .group-controls {
        flex-direction: column;
    }
/* Редактируемое поле cURL */
    .curl-textarea {
        width: 100%;
        padding: 15px;
        font-family: 'Courier New', monospace;
        font-size: 13px;
        white-space: pre;
        overflow-x: auto;
        border: 1px solid #ddd;
        border-radius: 6px;
        resize: vertical;
        min-height: 150px;
        background: #f8f9fa;
        color: #333;
        line-height: 1.5;
    }

body.dark-theme .curl-textarea {
    background: #2a2a3a;
    border-color: #3a3a4a;
    color: #d4d4d4;
}

    .curl-textarea:focus {
        outline: none;
        border-color: #3498db;
        box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    }

    .curl-note {
        margin-top: 5px;
        color: #7f8c8d;
        font-size: 12px;
    }

body.dark-theme .curl-note {
    color: #aaa;
}

    .curl-note i {
        margin-right: 4px;
    }

/* Улучшаем контейнер cURL */
    .curl-container {
        position: relative;
        border-radius: 6px;
        overflow: visible;
    }

    .curl-container .copy-btn {
        top: 10px;
        right: 10px;
        z-index: 10;
    }
}
/* Стили для токена */
.token-parameter {
    background: rgba(52, 152, 219, 0.1);
    border-left: 3px solid #3498db;
    padding: 15px;
    margin-top: 10px;
}

.token-value-display {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 10px;
    font-size: 12px;
}

body.dark-theme .token-value-display {
    background: #2a2a3a;
    border: 1px solid #3a3a4a;
}

.token-value-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.token-value {
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

body.dark-theme .token-value {
    background: #353545;
    color: #e0e0e0;
}

.token-value-container .warning {
    color: #e74c3c;
    font-size: 12px;
}

.toggle-label {
    font-size: 14px;
    color: #666;
}

body.dark-theme .toggle-label {
    color: #aaa;
}