* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

/* Растягиваем body на весь экран */
body {
    background: #0b0e11;
    color: #e0e0e0;
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Добавляем настройки для контейнера #app, чтобы он был на всю ширину */
#app {
    display: flex;
    width: 100% !important;
    height: 100%;
}

/* Боковая панель */
.sidebar {
    width: 70px;
    min-width: 70px;
    background: #151921;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    border-right: 1px solid #30363d;
}

.nav-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 24px;
    margin-bottom: 30px;
    cursor: pointer;
    transition: color 0.3s;
}

    .nav-btn:hover {
        color: #fff;
    }

    .nav-btn.active {
        color: #ff7b00;
    }

/* Основной контент теперь занимает всё свободное место */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    width: 100%;
}

/* Шапка на всю ширину */
header {
    background: #151921;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ff7b00;
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #ff7b00;
    text-transform: uppercase;
}

.auth-panel {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #30363d;
}

.auth-btn {
    background: #2a475e;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
}

    .auth-btn.logout {
        background: transparent;
        border: 1px solid #8b2e2e;
        color: #e0e0e0;
    }

        .auth-btn.logout:hover {
            background: #8b2e2e;
        }

/* УБРАНЫ ОГРАНИЧЕНИЯ ШИРИНЫ (max-width и margin auto) */
main {
    padding: 30px 40px;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

/* Карточки (Home) теперь будут шире */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    width: 100%;
}

.dash-card {
    border-radius: 8px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
}

.card-icon {
    font-size: 40px;
    opacity: 0.8;
}

.card-info h3 {
    font-size: 22px;
    margin-bottom: 5px;
    font-weight: 400;
}

.card-info p {
    font-size: 14px;
    opacity: 0.9;
}

.card-role {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.card-balance {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.card-server {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
}

.connect-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: 0.2s;
}

    .connect-btn:hover {
        background: rgba(255,255,255,0.3);
    }

/* Элементы управления (Admin / Form) */
#admin-session-form {
    background: #1c222d;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid #30363d;
    border-left: 4px solid #ff7b00;
}

form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

input {
    padding: 10px;
    background: #0d1117;
    border: 1px solid #30363d;
    color: #fff;
    border-radius: 4px;
}

.btn-orange {
    background: #ff7b00;
    border: none;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    padding: 10px;
}

    .btn-orange:hover {
        background: #e66e00;
    }

/* Реестр сессий */
.section-title {
    color: #ff7b00;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
}

.session-header-labels {
    display: grid;
    grid-template-columns: 50px 2fr 1fr 1fr 1fr 100px 30px;
    padding: 10px 20px;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 1px solid #30363d;
    margin-bottom: 10px;
    width: 100%;
}

.session-wrapper {
    background: #1c222d;
    border: 1px solid #30363d;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
    width: 100%;
}

.session-row {
    display: grid;
    grid-template-columns: 50px 2fr 1fr 1fr 1fr 100px 30px;
    padding: 15px 20px;
    cursor: pointer;
    align-items: center;
    transition: background 0.2s;
    width: 100%;
}

    .session-row:hover {
        background: #252d3a;
    }

.col {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

    .col.id {
        color: #ff7b00;
        font-weight: bold;
    }

    .col.arrow {
        text-align: center;
        color: #666;
        font-size: 18px;
        transition: transform 0.3s ease;
    }

        .col.arrow.open {
            transform: rotate(180deg);
            color: #ff7b00;
        }

.del-btn {
    background: #8b2e2e;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
}

/* Таблица смен */
.session-content {
    display: none;
    padding: 20px;
    background: #0d1117;
    border-top: 1px solid #30363d;
}

    .session-content.show {
        display: block;
    }

.shift-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .shift-table th {
        background: #1c222d;
        padding: 12px;
        text-align: left;
        border: 1px solid #30363d;
        color: #888;
        text-transform: uppercase;
        font-size: 11px;
    }

    .shift-table td {
        padding: 8px;
        border: 1px solid #30363d;
    }

    .shift-table tr:hover {
        background: #151921;
    }

.slot-btn {
    width: 100%;
    padding: 8px;
    background: transparent;
    border: 1px dashed #444;
    color: #888;
    cursor: pointer;
    border-radius: 3px;
    transition: 0.2s;
}

    .slot-btn:hover {
        border-color: #66c0f4;
        color: #66c0f4;
    }

.slot-taken {
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    background: #333;
    color: #ccc;
    cursor: pointer;
    border: 1px solid transparent;
}

    .slot-taken.mine {
        background: #2980b9;
        color: #fff;
        border-color: #3498db;
    }

    .slot-taken.approved {
        background: #4caf50;
        color: #fff;
        border-color: #2e7d32;
    }

/* Контекстное меню */
.context-menu {
    display: none;
    position: absolute;
    background: #1c222d;
    border: 1px solid #30363d;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border-radius: 4px;
    z-index: 1000;
    overflow: hidden;
    width: 150px;
}

.menu-item {
    padding: 10px 15px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
    transition: background 0.2s;
}

    .menu-item:hover {
        background: #2a475e;
    }

    .menu-item.approve {
        color: #4caf50;
    }

    .menu-item.reject {
        color: #f44336;
    }