/* Общий фон приложения */
.bg-app {
    background: #f4f5f7;
}

/* Заголовок страницы */
.app-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.app-page-header h1 {
    margin: 0;
}

/* Базовая универсальная карточка */
.app-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: none;
}

/* Шапка карточки */
.app-card-header {
    color: #fff;
    font-weight: 500;
    padding: 0.6rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Варианты ТЁМНО-КРАСНЫХ градиентов */
.app-card-header--red {
    background: linear-gradient(90deg, #7a0000, #c20000);
}

.app-card-header--darkred {
    background: linear-gradient(90deg, #5c0000, #a00000);
}

.app-card-header--softred {
    background: linear-gradient(90deg, #a00000, #c63c3c);
}

/* Иконка в шапке карточки */
.app-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.16);
    border-radius: 999px;
    padding: 4px;
    margin-right: 0.4rem;
}

.app-header-icon svg {
    width: 18px;
    height: 18px;
}

/* Небольшие карточки-метрики на главной */
.app-stat-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    border: none;
}

/* Карточки на главной */
.dashboard-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform .2s ease;
    border: none;
}

.dashboard-card:hover {
    transform: translateY(-3px);
}

.dashboard-card-header {
    padding: 12px 16px;
    background: linear-gradient(90deg, #7a0000, #c20000);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.18);
    border-radius: 10px;
    padding: 6px;
}

.dashboard-icon svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
}

.dashboard-card-body {
    padding: 18px;
}

.dashboard-number {
    font-size: 2.6rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #7a0000;
}

/* Таблицы */
.table-app th {
    background-color: #f0f0f0;
}

/* Логин-страница */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    max-width: 380px;
    width: 100%;
}

.login-logo {
    max-width: 140px;
    margin-bottom: 16px;
}

/* Кнопки в карточках */
.app-card .btn,
.app-stat-card .btn,
.dashboard-card .btn {
    border-radius: 999px;
}
