@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #ffffff;
    --primary: #fe8443;
    --primary-dark: #ef5401;
    --text-main: #333333;
    --text-muted: #888888;
    --neu-inset: inset 4px 4px 8px rgba(0,0,0,0.05), inset -4px -4px 8px rgba(255,255,255,0.9);
    --neu-drop: 6px 6px 12px rgba(0,0,0,0.08), -6px -6px 12px rgba(255,255,255,0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body { background-color: var(--bg-color); min-height: 100vh; overflow-x: hidden; position: relative; }
.login-body { display: flex; justify-content: center; align-items: center; }
.dash-body { align-items: flex-start; padding: 20px; overflow-y: auto; }

/* Анимация и стекло */
.blob { position: absolute; filter: blur(60px); z-index: 1; opacity: 0.6; animation: move 10s infinite alternate cubic-bezier(0.4, 0, 0.2, 1); }
.blob-1 { width: 300px; height: 300px; background: var(--primary); }
.blob-2 { width: 400px; height: 400px; background: var(--primary-dark); animation-delay: -5s; }
@keyframes move { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(50px, 50px) scale(1.1); } }

.glass-panel { background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.5); }

/* Логин */
.login-card { position: relative; z-index: 10; width: 100%; max-width: 400px; padding: 40px; border-radius: 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.05); }
.input-group label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; }
.input-group input { width: 100%; padding: 15px 20px; border: none; outline: none; background: transparent; border-radius: 12px; box-shadow: var(--neu-inset); margin-bottom: 20px; transition: 0.3s; }
.input-group input:focus { box-shadow: inset 6px 6px 12px rgba(0,0,0,0.08), inset -6px -6px 12px rgba(255,255,255,1); }
.btn-submit { width: 100%; padding: 15px; border: none; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; font-weight: 600; cursor: pointer; box-shadow: var(--neu-drop); transition: 0.3s; }
.btn-submit:active { box-shadow: inset 4px 4px 8px rgba(0,0,0,0.1); }

/* Дашборд Layout */
.dashboard-layout { width: 100%; max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 260px 1fr; gap: 30px; position: relative; z-index: 10; }
.sidebar { border-radius: 24px; padding: 30px 20px; box-shadow: var(--neu-drop); height: calc(100vh - 40px); position: sticky; top: 20px; display: flex; flex-direction: column; background: var(--bg-color);}
.menu-item { display: flex; align-items: center; gap: 15px; padding: 15px 20px; margin-bottom: 15px; border-radius: 16px; color: var(--text-muted); text-decoration: none; font-weight: 600; transition: 0.3s; }
.menu-item:hover, .menu-item.active { background: var(--bg-color); box-shadow: var(--neu-inset); color: var(--primary-dark); }
.menu-item i { color: var(--primary); }

.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; border-radius: 20px; box-shadow: var(--neu-drop); margin-bottom: 30px;}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-bottom: 30px;}
.stat-card { padding: 30px; border-radius: 24px; background: var(--bg-color); box-shadow: var(--neu-drop); }

/* Таблица и Плеер */
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 15px; color: var(--text-muted); font-weight: 500; border-bottom: 2px solid rgba(0,0,0,0.05); }
td { padding: 15px; border-bottom: 1px solid rgba(0,0,0,0.03); color: var(--text-main); font-weight: 500; }
tr:hover td { background: rgba(254, 132, 67, 0.05); }

#audioPlayerContainer { position: fixed; bottom: 30px; right: 30px; padding: 15px 25px; border-radius: 20px; box-shadow: var(--neu-drop); z-index: 100; align-items: center; gap: 15px; }

/* Лоадеры */
.page-loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-color); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease; }
.spinner { width: 50px; height: 50px; border: 4px solid rgba(254, 132, 67, 0.2); border-top-color: var(--primary-dark); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }