:root {
    --app-primary: #0d6efd;
    --app-bg: #f5f7fb;
    --app-card: #ffffff;
    --app-text: #1f2a37;
}

body {
    background: var(--app-bg);
    color: var(--app-text);
    font-size: 14px;
}

.auth-page {
    background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
}

.app-navbar {
    background: linear-gradient(90deg, #0d6efd, #0b5ed7);
    box-shadow: 0 8px 20px rgba(13, 110, 253, .15);
}

.app-navbar .navbar-brand {
    color: #fff;
}

.app-card,
.stat-card,
.form-control,
.form-select,
.btn,
.alert,
.info-box,
.empty-state,
.material-card {
    border-radius: 22px !important;
}

.app-card,
.stat-card {
    border: 0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.stat-card .card-body {
    padding: 18px;
}

.stat-card small {
    display: block;
    color: #6b7280;
    margin-bottom: 6px;
}

.stat-card h3 {
    margin: 0;
    font-size: 1.8rem;
}

.form-control,
.form-select {
    min-height: 48px;
    border-color: #dce4ef;
}

textarea.form-control {
    min-height: 110px;
}

.empty-state {
    background: #fff;
    padding: 28px;
    text-align: center;
    color: #6b7280;
    border: 1px dashed #dce4ef;
}

.material-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, .05);
}

.material-card__image-wrap {
    width: 92px;
    height: 92px;
    overflow: hidden;
    border-radius: 18px;
    background: #eef4ff;
}

.material-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.material-card__content {
    min-width: 0;
}

.material-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-cover {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.info-box {
    background: #f8fafc;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 1px solid #edf2f7;
}

.info-box small {
    color: #6b7280;
}

@media (min-width: 768px) {
    body { font-size: 15px; }
    .material-card {
        grid-template-columns: 120px 1fr;
        gap: 18px;
        padding: 16px;
    }
    .material-card__image-wrap {
        width: 120px;
        height: 120px;
    }
    .material-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px 18px;
    }
}
