/* 🟢 НОВЫЙ ФАЙЛ: wwwroot/css/dashboard.css */

* {
    box-sizing: border-box;
}

body {

    margin: 0;

    background: #0f172a;

    color: white;

    font-family: Arial, sans-serif;
}

.page {

    padding: 24px;
}

.page-header {

    margin-bottom: 24px;
}

.page-header h1 {

    margin: 0 0 8px;

    font-size: 36px;
}

.page-header p {

    margin: 0;

    color: #94a3b8;
}

/* 🟢 сетка этапов */
.stages-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));

    gap: 20px;
}

/* 🟢 карточка этапа */
.stage-card {

    border-radius: 18px;

    padding: 20px;

    min-height: 240px;

    transition: 0.3s;

    border: 2px solid #334155;
}

/* 🟢 свободный этап */
.stage-card.free {

    background: #1e293b;
}

/* 🟢 этап занят */
.stage-card.busy {

    background: #14532d;

    border-color: #22c55e;

    box-shadow:
        0 0 20px rgba(34, 197, 94, 0.4);
}

.stage-title {

    font-size: 24px;

    margin-bottom: 18px;

    font-weight: bold;
}

/* 🟢 статус */
.stage-status {

    padding: 10px;

    border-radius: 12px;

    font-weight: bold;

    margin-bottom: 16px;
}

.stage-status.free {

    background: #334155;
}

.stage-status.busy {

    background: #16a34a;
}

/* 🟢 информация проекта */
.project-block {

    background: rgba(255,255,255,0.08);

    border-radius: 14px;

    padding: 14px;
}

.project-name {

    font-size: 20px;

    margin-bottom: 10px;

    font-weight: bold;
}

.project-info {

    color: #e2e8f0;

    margin-bottom: 8px;
}

/* 🟢 пустой этап */
.empty-stage {

    color: #94a3b8;

    margin-top: 50px;

    text-align: center;

    font-size: 18px;
}

/* 🟢 ДОБАВЛЕНО: панель чата */

.chat-panel {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 420px;
    max-width: calc(100vw - 48px);
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    z-index: 100;
}

.chat-panel.hidden {
    display: none;
}

.chat-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.chat-panel-header h2 {
    margin: 0 0 4px;
    font-size: 22px;
}

.chat-panel-header p {
    margin: 0;
    color: #94a3b8;
}

.close-chat-button {
    width: auto;
    border: none;
    background: #475569;
    color: white;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.chat-messages-list {
    height: 320px;
    overflow-y: auto;
    background: #0f172a;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
}

.chat-message {
    background: #334155;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
}

.chat-message.manager {
    background: #14532d;
}

.chat-message-author {
    font-weight: bold;
    margin-bottom: 4px;
}

.chat-message-text {
    color: #e2e8f0;
}

.chat-message-time {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 6px;
}

.chat-send-block {
    display: flex;
    gap: 10px;
}

.chat-send-block input {
    flex: 1;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 16px;
}

.chat-send-block button {
    width: auto;
    border: none;
    background: #2563eb;
    color: white;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
}

/* 🟢 ДОБАВЛЕНО: кнопка открытия чата в карточке проекта */
.open-chat-button {
    width: 100%;
    margin-top: 12px;
    border: none;
    background: #2563eb;
    color: white;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
}