* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #2c3e50, #1a2a6c);
    color: #fff;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.container {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Верхняя панель */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(10, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 150, 255, 0.3);
    flex-shrink: 0;
    gap: 20px;
    position: relative;
    height: auto;
    min-height: 50px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #4fc3f7;
    white-space: nowrap;
}

.user-info .separator {
    color: rgba(255, 255, 255, 0.3);
}

.tabs {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex: 1;
}

.control-buttons-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

.control-buttons {
    display: flex;
    gap: 10px;
    white-space: nowrap;
    justify-content: center;
}

header {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Стили для .tabs перенесены в .top-bar .tabs выше */

.tab {
    padding: 10px 20px;
    background: rgba(25, 118, 210, 0.3);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.stop-btn {
    background-color: rgb(255, 82, 82) !important;
}

.stop-btn:hover {
    background-color: rgb(224, 64, 64) !important;
}

.tab.active {
    background: linear-gradient(to right, #2196f3, #21cbf3);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.tab-content.active {
    display: block;
}

#guitarTab {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

#settingsTab {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    gap: 20px;
    flex: 1;
    height: calc(100% - 70px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    min-height: 0;
}

/* Специфичные стили для админ-панели */
.admin-container .app-container {
    flex-direction: column;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 150, 255, 0.3) transparent;
}

.admin-container .app-container::-webkit-scrollbar {
    width: 8px;
}

.admin-container .app-container::-webkit-scrollbar-track {
    background: transparent;
}

.admin-container .app-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 150, 255, 0.3);
    border-radius: 4px;
}

.admin-container .app-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 150, 255, 0.5);
}

.app-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.guitar-section, .settings-section {
    flex: 1;
    min-width: 300px;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 35, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 150, 255, 0.3);
    display: none; /* По умолчанию скрываем */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Разрешаем скролл в настройках */
.settings-section {
    overflow-y: auto;
    overflow-x: hidden;
}

.settings-section::-webkit-scrollbar {
    width: 8px;
}

.settings-section::-webkit-scrollbar-track {
    background: transparent;
}

.settings-section::-webkit-scrollbar-thumb {
    background-color: rgba(0, 150, 255, 0.3);
    border-radius: 4px;
}

.settings-section::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 150, 255, 0.5);
}

/* Показываем активную секцию */
.guitar-section.active, .settings-section.active {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.guitar-section.active {

}

.sub-section-title {
    text-align: center;
    margin: 15px 0;
    color: #4fc3f7;
    font-size: 1.2rem;
}

.tuner-display {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 20, 40, 0.4);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 150, 255, 0.3);
}

.frequency {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4fc3f7;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.7);
    margin-bottom: 10px;
}

.note-container {
    position: relative;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
}

.note {
    font-size: 4rem;
    font-weight: bold;
    color: #ff9800;
    text-shadow: 0 0 15px rgba(255, 152, 0, 0.8);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.accuracy {
    height: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin: 20px auto;
    max-width: 500px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
}

.accuracy-bar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}

.accuracy-fill {
    position: absolute;
    top: 0;
    height: 100%;
    transition: width 0.08s ease-out, background-color 0.08s ease-out, box-shadow 0.08s ease-out;
    pointer-events: none;
}

.accuracy-fill-left {
    right: 50%;
    width: 0;
    border-radius: 10px 0 0 10px;
}

.accuracy-fill-right {
    left: 50%;
    width: 0;
    border-radius: 0 10px 10px 0;
}

.indicator {
    position: absolute;
    width: 3px;
    height: 150%;
    background: rgba(255, 255, 255, 0.85);
    top: -25%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

.needle {
    display: none;
}

/* Кнопки выбора струн в тюнере */
.string-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 8px;
    justify-content: space-between;
}

.string-button {
    flex: 1 1 0;
    padding: 6px 8px;
    font-size: 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.4);
    color: #e0f7fa;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-width: 0;
}

.string-button span.note-label {
    font-weight: 600;
    color: #ff9800;
}

.string-button span.string-label {
    opacity: 0.9;
    font-size: 0.8rem;
}

.string-button:hover {
    background: rgba(33, 150, 243, 0.4);
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

.string-button.active {
    background: linear-gradient(to right, #2196f3, #21cbf3);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(33, 150, 243, 0.8);
    border-color: transparent;
}

.string-button.tuned::after {
    content: "✓";
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 0.9rem;
    color: #69f0ae;
    text-shadow: 0 0 6px rgba(105, 240, 174, 0.9);
}

.string-button.suggested:not(.active) {
    border-color: rgba(76, 175, 80, 0.8);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.7);
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    background: linear-gradient(to right, #2196f3, #21cbf3);
    color: white;
    font-weight: bold;
    transition: all 0.3s;
    min-width: 160px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled,
.btn.btn-disabled {
    background: linear-gradient(to right, #78909c, #b0bec5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    pointer-events: none;
}

#stopBtn {
    background: linear-gradient(to right, #ff5252, #ff7675);
    box-shadow: 0 4px 15px rgba(255, 82, 82, 0.4);
}

#stopBtn:hover {
    box-shadow: 0 6px 20px rgba(255, 82, 82, 0.6);
}

.note-sequence {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 30, 60, 0.5);
    border-radius: 10px;
    text-align: center;
    flex-shrink: 0;
}

.sequence-info {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.current-note {
    font-size: 1.2rem;
    color: #ff9800;
}

.progress {
    color: #4fc3f7;
    font-size: 1.1rem;
}

.settings {
    background: rgba(0, 30, 60, 0.5);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.settings h3 {
    color: #4fc3f7;
    margin-bottom: 15px;
    text-align: center;
}

.setting-item {
    margin-bottom: 15px;
}

.setting-item label {
    display: block;
    margin-bottom: 5px;
    color: #bbdefb;
}

.setting-item input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    outline: none;
}

.setting-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2196f3;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.8);
}

.setting-value {
    display: inline-block;
    margin-left: 10px;
    font-weight: bold;
    color: #4fc3f7;
}

.instructions h3 {
    color: #4fc3f7;
    margin-bottom: 10px;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 8px;
}

/* Анимации для появления */
@keyframes slide-line-grow {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes slide-pointer-appear {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(245, 213, 6, 1); }
    50% { transform: scale(1.3); box-shadow: 0 0 15px rgba(245, 213, 6, 1); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(245, 213, 6, 1); }
}

@keyframes next-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 0.5; }
}

#audioWarning {
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.7);
}

#gauge-needle {
    position: absolute;
    width: 2px;
    height: 100px;
    background: white;
    top: 50%;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-90deg);
    transition: transform 0.5s ease;
}

#level-info {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

/* Добавим стили для блоков мелодии */
.melody-blocks-container {
    padding: 15px;
    background-color: #2c2c2c;
    border-radius: 10px;
    flex-shrink: 0;
}

.melody-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.full-melody-sequence {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 20px;
    align-items: center;
    justify-content: center;
}

.melody-block {
    flex: 1;
    min-width: 100px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    flex-direction: column;
}

.melody-block:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.melody-block.active {
    outline: 3px solid #ff9800;
    box-shadow: 0 0 10px #ff9800;
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .guitar-section, .settings-section {
        width: 100%;
    }

    .btn {
        min-width: 140px;
        padding: 10px 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .note {
        font-size: 3rem;
    }
}

/* Добавить в конец файла */
.melody-block {
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.melody-block.playing {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 5px rgba(255, 165, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 165, 0, 0.9); }
    100% { box-shadow: 0 0 5px rgba(255, 165, 0, 0.5); }
}

.block-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: bold;
}

/* Добавить в конец файла */
.stars-container {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.star {
    font-size: 20px;
    color: #ccc;
}

.star.filled {
    color: gold;
}

#resetProgressBtn {
    background-color: #ff5252;
    border: none;
    margin-top: 15px;
    padding: 10px 15px;
}

#resetProgressBtn:hover {
    background-color: #e04040;
}

.signal-level {
    margin: 10px 0;
    color: white;
}

.level-bar {
    width: 100%;
    height: 10px;
    background: #333;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 5px;
}

.level-fill {
    height: 100%;
    background: #4CAF50;
    width: 0;
    transition: width 0.1s, background-color 0.3s;
}

/* Стили для последовательности воспроизведения */
.sequence-block {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 20px;
    width: 20px;
}

.sequence-block.active {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    border: 2px solid #ff9800 !important;
    z-index: 10;
    position: relative;
}

.sequence-block-pause {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    cursor: default;
}

.sequence-block-pause.active {
    border: 2px dashed #ff9800 !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.sequence-block.playing {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#threejs-container {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    background: linear-gradient(to bottom, #001122 0%, #003366 100%);
    overflow: hidden;
}

#threejs-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.advanced-effects-controls {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.effect-control-group {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 5px;
}

.effect-toggle {
    display: flex;
    align-items: center;
    font-weight: bold;
    margin-bottom: 10px;
    cursor: pointer;
}

/* Стили для авторизации */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.auth-container {
    background: rgba(10, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    min-width: 400px;
    max-width: 500px;
    border: 1px solid rgba(0, 150, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #4fc3f7;
    font-size: 2rem;
}

.auth-container input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.auth-container input:focus {
    border-color: #2196f3;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

.auth-container input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: linear-gradient(to right, #2196f3, #21cbf3);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    background: linear-gradient(to right, #78909c, #b0bec5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-btn-secondary {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.auth-error {
    background: rgba(255, 82, 82, 0.2);
    border: 1px solid rgba(255, 82, 82, 0.5);
    color: #ff5252;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links a {
    color: #4fc3f7;
    text-decoration: none;
    display: block;
    margin: 10px 0;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: #21cbf3;
    text-decoration: underline;
}

.logout-tab {
    background: rgba(255, 82, 82, 0.3) !important;
}

.logout-tab:hover {
    background: rgba(255, 82, 82, 0.5) !important;
}

.effect-toggle input {
    margin-right: 8px;
}

.param-value {
    display: inline-block;
    min-width: 40px;
    text-align: right;
    margin-left: 5px;
    font-weight: bold;
}

.eq-bands {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.eq-bands label {
    font-size: 12px;
}

.effect-params input[type="range"] {
    width: 100%;
    margin: 5px 0;
}

.effect-params select {
    width: 100%;
    padding: 5px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    color: white;
}

/* Стили для селектов и опций - черный текст на белом фоне */
select,
select.btn {
    color: black !important;
    background-color: white !important;
}

select option,
select.btn option {
    background-color: white !important;
    color: black !important;
    padding: 8px;
}

/* Специфичные селекты */
#microphoneSelect,
#tuning,
#filterType {
    background-color: white !important;
    color: black !important;
}

#microphoneSelect option,
#tuning option,
#filterType option {
    background-color: white !important;
    color: black !important;
}


.gaming-toggle {
    background: #4CAF50;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.gaming-toggle:hover {
    background: #45a049;
}

.gaming-stats {
    margin-top: 10px;
    font-size: 12px;
}

#score {
    color: #4CAF50;
    font-weight: bold;
}

#streak {
    color: #FF9800;
    font-weight: bold;
}

#accuracy {
    color: #2196F3;
    font-weight: bold;
}

/* Админ-панель */
.admin-section {
    flex: 1;
    overflow: visible;
    padding: 0;
    min-height: 0;
}

.admin-panel {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(0, 150, 255, 0.3);
}

.admin-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: #4fc3f7;
    cursor: pointer;
    font-size: 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.admin-tab:hover {
    color: #fff;
    background: rgba(79, 195, 247, 0.1);
}

.admin-tab.active {
    color: #fff;
    border-bottom-color: #4fc3f7;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-header h2 {
    color: #fff;
    margin: 0;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

.admin-list::-webkit-scrollbar {
    width: 8px;
}

.admin-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.admin-list::-webkit-scrollbar-thumb {
    background: rgba(79, 195, 247, 0.5);
    border-radius: 4px;
}

.admin-list::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 195, 247, 0.7);
}

.admin-item {
    background: rgba(10, 15, 35, 0.8);
    border: 1px solid rgba(0, 150, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
}

.admin-item:hover {
    background: rgba(10, 15, 35, 0.95);
    border-color: rgba(0, 150, 255, 0.5);
}

.admin-item-nested {
    margin-left: 30px;
    background: rgba(10, 15, 35, 0.6);
}

.admin-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.admin-item-header h3,
.admin-item-header h4 {
    color: #4fc3f7;
    margin: 0;
}

.admin-item-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 5px 15px;
    font-size: 0.85rem;
}

.admin-item-details {
    color: #ccc;
    font-size: 0.9rem;
}

.admin-item-details p {
    margin: 5px 0;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a2a6c, #2c3e50);
    margin: 5% auto;
    padding: 30px;
    border: 2px solid rgba(0, 150, 255, 0.5);
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-large {
    max-width: 900px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover,
.close:focus {
    color: #fff;
}

.modal-content h2 {
    color: #4fc3f7;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    color: #4fc3f7;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: rgba(10, 15, 35, 0.8);
    border: 1px solid rgba(0, 150, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    background: rgba(10, 15, 35, 0.8);
    border: 1px solid rgba(0, 150, 255, 0.3);
    border-radius: 5px;
    color: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: 'Courier New', monospace;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-secondary {
    background-color: #666;
}

.btn-secondary:hover {
    background-color: #777;
}

/* Статистика пользователя */
.user-stats {
    color: #fff;
}

.user-stats h3 {
    color: #4fc3f7;
    margin-top: 20px;
    margin-bottom: 15px;
}

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

.stat-item {
    background: rgba(10, 15, 35, 0.8);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid rgba(0, 150, 255, 0.3);
}

.progress-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-item {
    background: rgba(10, 15, 35, 0.8);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid rgba(0, 150, 255, 0.3);
}

.progress-details {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #ccc;
}

.progress-details span {
    padding: 5px 10px;
    background: rgba(0, 150, 255, 0.1);
    border-radius: 3px;
}

.song-blocks-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 150, 255, 0.2);
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 150, 255, 0.3) transparent;
}

.song-blocks-container::-webkit-scrollbar {
    width: 8px;
}

.song-blocks-container::-webkit-scrollbar-track {
    background: transparent;
}

.song-blocks-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 150, 255, 0.3);
    border-radius: 4px;
}

.song-blocks-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 150, 255, 0.5);
}

.file-preview {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 150, 255, 0.1);
    border-radius: 5px;
    font-size: 0.9rem;
}

.file-info {
    margin-top: 5px;
    font-size: 0.85rem;
    color: #aaa;
}

.file-info code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #4fc3f7;
}