:root {
    --app-bg: #f5f7fb;
}

body {
    background: var(--app-bg);
    color: #212529;
}

.login-page {
    background: linear-gradient(135deg, #eef3ff 0%, #f8f9fa 50%, #eef7f2 100%);
}

.login-card {
    width: 100%;
    max-width: 440px;
    border-radius: 1rem;
}

.login-icon,
.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e8f0ff;
    color: #0d6efd;
    font-size: 1.35rem;
}

.min-w-0 {
    min-width: 0;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-content-preview {
    max-width: 420px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-full-content {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.keyword-chip {
    display: inline-flex;
    align-items: center;
    font-size: .9rem;
}

.keyword-chip .btn-close {
    width: .55rem;
    height: .55rem;
    padding: .25rem;
}

.card {
    border-radius: .85rem;
}

@media (max-width: 767.98px) {
    .posts-table thead {
        display: none;
    }

    .posts-table,
    .posts-table tbody,
    .posts-table tr,
    .posts-table td {
        display: block;
        width: 100%;
    }

    .posts-table tr {
        padding: .75rem;
        border-bottom: 1px solid #dee2e6;
    }

    .posts-table td {
        border: 0;
        padding: .35rem 0;
        text-align: left !important;
    }

    .posts-table td::before {
        content: attr(data-label);
        display: block;
        font-size: .75rem;
        font-weight: 600;
        color: #6c757d;
        text-transform: uppercase;
        margin-bottom: .15rem;
    }

    .post-content-preview {
        max-width: none;
    }
}
