@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&display=swap');

:root {
  --vo-bg: #0b0c0f;
  --vo-surface: #17191e;
  --vo-text: #f7f7f8;
  --vo-muted: #8e95a3;
  --vo-brand: linear-gradient(135deg, #00ffff 0%, #0055ff 100%);
  --vo-accent: #2d7ff9;
  --vo-radius-sm: 12px;
  --vo-radius-md: 18px;
  --vo-radius-lg: 24px;
  --vo-shadow-soft: 0 14px 42px rgb(0 0 0 / .22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: var(--vo-bg);
    color: var(--vo-text);
    font-family: 'Inter Tight', Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* Формы и кнопки */
input, textarea, select {
    width: 100%; padding: 12px; margin-bottom: 15px;
    background: var(--vo-bg); border: 1px solid #23262E;
    color: var(--vo-text); border-radius: var(--vo-radius-sm);
    font-family: inherit;
}
.button-primary {
    min-height: 48px; padding: 0 22px; border: 0; cursor: pointer;
    border-radius: var(--vo-radius-md);
    background: var(--vo-brand); color: #071015;
    font: 700 15px/1 inherit; transition: opacity 0.2s;
}
.button-primary:hover { opacity: 0.9; }
.button-secondary {
    min-height: 48px; padding: 0 22px; border: 0; cursor: pointer;
    border-radius: var(--vo-radius-md); background: #23262E; color: var(--vo-text);
}

/* Авторизация */
.login-body { display: flex; align-items: center; justify-content: center; }
.login-card { background: var(--vo-surface); padding: 40px; border-radius: var(--vo-radius-lg); width: 100%; max-width: 400px; text-align: center; border: 1px solid #23262E; }
.headline { font-weight: 700; font-size: 32px; margin-bottom: 24px; letter-spacing: -0.02em; }
.error-msg { color: #FF4057; margin-bottom: 15px; font-weight: 500; }

/* Layout */
.layout { display: flex; height: 100vh; }
.content-area { flex: 1; padding: 40px; display: flex; flex-direction: column; overflow: hidden; }

/* Правое меню (Полосочки) */
.sidebar-right { width: 280px; background: var(--vo-surface); border-left: 1px solid #23262E; padding: 40px 0; display: flex; flex-direction: column; }
.logo { font-size: 24px; font-weight: 800; padding: 0 40px 40px; letter-spacing: -0.05em; }
.logo-accent { color: var(--vo-accent); }
.tabs { display: flex; flex-direction: column; gap: 8px; padding: 0 20px; }
.tab {
    padding: 16px 20px; border-radius: var(--vo-radius-sm); cursor: pointer;
    color: var(--vo-muted); font-weight: 600; transition: all 0.2s;
    border-right: 4px solid transparent; /* Дизайн полосочек */
}
.tab:hover { background: #23262E; color: var(--vo-text); }
.tab.active { background: #23262E; color: var(--vo-text); border-right-color: var(--vo-accent); }

/* Верхний бар */
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.user-meta { display: flex; align-items: center; gap: 20px; }
.muted-link { color: var(--vo-muted); text-decoration: none; }

/* Views */
.view-panel { display: none; flex: 1; overflow: hidden; }
.view-panel.active { display: flex; flex-direction: column; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; width: 100%; max-width: 800px; }
.stat-card { background: var(--vo-surface); padding: 30px; border-radius: var(--vo-radius-md); border: 1px solid #23262E; }
.stat-card h3 { color: var(--vo-muted); font-size: 16px; margin-bottom: 10px; font-weight: 500;}
.stat-card p { font-size: 48px; font-weight: 700; color: var(--vo-text); }

/* Доска (Колонки) */
.board { display: flex; gap: 24px; flex: 1; overflow-x: auto; padding-bottom: 20px; }
.column { flex: 1; min-width: 300px; background: #111317; border-radius: var(--vo-radius-md); padding: 20px; display: flex; flex-direction: column; }
.col-header { font-weight: 600; font-size: 18px; margin-bottom: 20px; color: var(--vo-muted); }
.task-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }

/* Карточки */
.task-card {
    background: var(--vo-surface); border: 1px solid #23262E; padding: 16px;
    border-radius: var(--vo-radius-sm); cursor: pointer; transition: transform 0.2s;
}
.task-card:hover { transform: translateY(-2px); border-color: #3b3e47; }
.task-card.dragging { opacity: 0.5; }
.task-title { font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.task-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--vo-muted); }
.priority-chip { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.p-high { background: #FF4057; }
.p-medium { background: #F2B84B; }
.p-low { background: #2DF9A6; }
.task-author { background: #23262E; padding: 4px 8px; border-radius: 999px; }

/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(11, 12, 15, 0.8); z-index: 100; align-items: center; justify-content: center; }
.modal-card { background: var(--vo-surface); width: 100%; max-width: 500px; padding: 30px; border-radius: var(--vo-radius-lg); border: 1px solid #23262E; max-height: 90vh; overflow-y: auto; }
.modal-card h2 { margin-bottom: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
#media-preview img, #media-preview video { max-width: 100%; border-radius: 8px; margin-top: 10px; }