:root {
    --color-yellow: #ffc107;
    --color-pink: #e91e63;
    --color-blue: #2196f3;
    --color-green: #4caf50;
    --color-ink: #263645;
    --color-muted: #7a8794;
    --color-bg: #f4f6f9;
    --color-card: #ffffff;
    --color-border: #e8edf3;
    --color-danger: #ff5252;
    --shadow-soft: 0 10px 30px rgba(22, 38, 54, 0.07);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-ink);
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

.navbar {
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(to right, var(--color-yellow), var(--color-pink), var(--color-blue), var(--color-green)) 1;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.navbar-brand {
    color: var(--color-ink) !important;
    font-weight: 700;
    letter-spacing: 0;
}

.nav-logo {
    width: 54px;
    height: 38px;
    object-fit: contain;
    border-radius: 6px;
}

.navbar .nav-link {
    color: var(--color-ink);
    font-weight: 500;
    border-radius: 999px;
    padding: 0.45rem 0.8rem !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    background: rgba(33, 150, 243, 0.08);
    color: var(--color-blue);
}

.page-shell {
    padding-top: 104px;
    min-height: calc(100vh - 80px);
}

.site-footer {
    background: #fff;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    padding: 1rem 0;
    font-size: 0.9rem;
}

.footer-link {
    color: var(--color-muted);
    font-size: 0.82rem;
}

.footer-link:hover {
    color: var(--color-blue);
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: 0;
}

.section-title {
    display: inline-block;
    position: relative;
    margin-bottom: 1rem;
}

.section-title::after {
    content: "";
    display: block;
    width: 42px;
    height: 4px;
    margin-top: 6px;
    border-radius: 999px;
    background: var(--color-yellow);
}

.hero {
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 2rem;
    align-items: center;
    padding: 2.5rem 0 4rem;
}

.hero-copy {
    max-width: 760px;
}

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 4.4rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.hero p {
    color: var(--color-muted);
    font-size: 1.08rem;
    max-width: 620px;
}

.hero-logo {
    width: 100%;
    max-width: 420px;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    justify-self: end;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn {
    border-radius: 999px;
    border: none;
    box-shadow: 0 4px 9px rgba(0, 0, 0, 0.06);
    font-weight: 600;
    padding: 0.6rem 1.2rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--color-blue);
}

.btn-primary:hover {
    background: #1976d2;
}

.btn-secondary {
    background: #fff;
    color: var(--color-ink);
    border: 1px solid #dfe6ee;
}

.btn-secondary:hover {
    background: #f8fafc;
    color: var(--color-ink);
}

.btn-danger {
    background: var(--color-danger);
}

.btn-success {
    background: var(--color-green);
}

.btn-warning {
    background: var(--color-yellow);
    color: #1f2933;
}

.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    background: var(--color-card);
    overflow: hidden;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #f0f3f7;
    color: var(--color-blue);
    font-weight: 700;
    padding: 1.15rem 1.25rem;
}

.card-header::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-green);
    margin-right: 10px;
}

.form-label {
    color: var(--color-ink);
    font-weight: 600;
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid #dfe6ee;
    background: #fafbfc;
    padding: 0.68rem 0.85rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.13);
}

.filter-panel {
    position: sticky;
    top: 92px;
    z-index: 2;
}

.result-count {
    color: var(--color-muted);
    font-weight: 600;
}

.table {
    margin-bottom: 0;
}

.curriculum-table {
    table-layout: fixed;
    min-width: 1120px;
}

.curriculum-table th:nth-child(1),
.curriculum-table td:nth-child(1) {
    width: 70px;
}

.curriculum-table th:nth-child(7),
.curriculum-table td:nth-child(7) {
    width: 110px;
}

.curriculum-table th:nth-child(8),
.curriculum-table td:nth-child(8),
.curriculum-table th:nth-child(9),
.curriculum-table td:nth-child(9) {
    width: 210px;
}

.curriculum-table th:nth-child(10),
.curriculum-table td:nth-child(10) {
    width: 72px;
}

.table thead th {
    background: #fafafa;
    border-top: none;
    border-bottom: 2px solid #edf2f7;
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    padding: 0.95rem;
    text-transform: uppercase;
}

.table-sort {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: inherit;
    gap: 0.4rem;
    justify-content: flex-start;
    letter-spacing: inherit;
    padding: 0;
    text-align: left;
    text-transform: inherit;
    width: 100%;
}

.table-sort:hover,
.table-sort:focus {
    color: var(--color-blue);
}

.table-sort:focus-visible {
    border-radius: 4px;
    outline: 2px solid rgba(33, 150, 243, 0.35);
    outline-offset: 3px;
}

.table-sort .sort-icon {
    color: #9aa8b5;
    font-size: 0.72rem;
}

.table-sort.active .sort-icon {
    color: var(--color-blue);
}

.table tbody td {
    border-bottom: 1px solid #f1f4f8;
    color: var(--color-ink);
    padding: 0.95rem;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.curriculum-table td:nth-child(1),
.curriculum-table td:nth-child(2),
.curriculum-table td:nth-child(3),
.curriculum-table td:nth-child(7) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-cell,
.text-preview,
.skill-detail-modal-body,
.skill-detail-block {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.text-preview {
    display: -webkit-box;
    line-height: 1.45;
    max-height: 4.35em;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.action-header,
.action-cell {
    text-align: center;
}

.action-cell {
    vertical-align: middle !important;
}

.icon-action {
    align-items: center;
    background: rgba(33, 150, 243, 0.1);
    border: 0;
    border-radius: 50%;
    color: var(--color-blue);
    display: inline-grid;
    height: 2.15rem;
    justify-content: center;
    padding: 0;
    width: 2.15rem;
}

.icon-action:hover,
.icon-action:focus {
    background: var(--color-blue);
    color: #fff;
}

.icon-action:focus-visible {
    outline: 2px solid rgba(33, 150, 243, 0.35);
    outline-offset: 3px;
}

.skill-detail-modal-body {
    display: grid;
    gap: 1rem;
}

.skill-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-detail-meta span {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 999px;
    color: var(--color-ink);
    font-size: 0.84rem;
    padding: 0.4rem 0.7rem;
}

.skill-detail-block {
    border-top: 1px solid #edf2f7;
    padding-top: 1rem;
}

.skill-detail-block h3 {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.skill-detail-block p {
    margin-bottom: 0;
    white-space: pre-wrap;
}

.skill-number {
    color: var(--color-blue);
    font-weight: 700;
    white-space: nowrap;
}

.badge-soft {
    border-radius: 999px;
    background: rgba(33, 150, 243, 0.08);
    color: var(--color-blue);
    display: inline-flex;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    white-space: nowrap;
}

.empty-state {
    color: var(--color-muted);
    padding: 3rem 1rem;
    text-align: center;
}

.suggestion-card {
    border-left: 5px solid var(--color-blue);
}

.forum-card-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.suggestion-meta {
    color: var(--color-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.88rem;
}

.stars {
    color: var(--color-yellow);
    display: inline-flex;
    gap: 0.12rem;
    white-space: nowrap;
}

.rating-summary {
    min-width: 145px;
    text-align: right;
}

.forum-post-text {
    margin: 1rem 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.forum-actions,
.suggestion-actions {
    align-items: center;
    border-top: 1px solid #edf2f7;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-top: 0.85rem;
}

.rating-picker {
    display: inline-flex;
    gap: 0.15rem;
}

.rating-star {
    align-items: center;
    background: transparent;
    border: 0;
    color: #c4ccd5;
    display: inline-grid;
    font-size: 1.2rem;
    height: 2rem;
    justify-content: center;
    padding: 0;
    width: 2rem;
}

.rating-star:hover,
.rating-star:focus,
.rating-star.active {
    color: var(--color-yellow);
}

.rating-star:focus-visible {
    border-radius: 50%;
    outline: 2px solid rgba(255, 193, 7, 0.38);
    outline-offset: 2px;
}

.suggestion-panel {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    margin-top: 0.9rem;
    padding: 1rem;
}

.forum-thread {
    border-top: 1px solid #edf2f7;
    margin-top: 1rem;
    padding-top: 1rem;
}

.comment-box {
    background: #f8fafc;
    border-left: 3px solid var(--color-green);
    border-radius: 8px;
    padding: 0.8rem 1rem;
}

.admin-message-preview {
    color: var(--color-ink);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-see-more {
    margin-left: 0.35rem;
    margin-top: 0.25rem;
    vertical-align: baseline;
}

.admin-text-modal-body {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    word-break: break-word;
}

.privacy-content li {
    margin-bottom: 0.4rem;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 75px;
}

.admin-sidebar {
    background: #fff;
    border-right: 1px solid #edf2f7;
    flex: 0 0 265px;
    padding: 1.5rem 1rem;
}

.admin-sidebar .nav-link {
    align-items: center;
    border-radius: 12px;
    color: var(--color-ink);
    display: flex;
    font-weight: 600;
    gap: 0.65rem;
    margin-bottom: 0.45rem;
    padding: 0.78rem 1rem;
}

.admin-sidebar .nav-link i {
    color: var(--color-muted);
    width: 22px;
}

.admin-sidebar .nav-link:hover {
    background: rgba(33, 150, 243, 0.07);
    color: var(--color-blue);
}

.admin-sidebar .nav-link.active {
    background: rgba(233, 30, 99, 0.1);
    color: var(--color-pink);
}

.admin-content {
    background: linear-gradient(135deg, #f4f6f9 0%, #ffffff 100%);
    flex: 1;
    min-width: 0;
    padding: 2rem;
}

.admin-user-card {
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 1rem;
}

.admin-user-card + .admin-user-card {
    margin-top: 1rem;
}

.metric-tile {
    border-left: 5px solid var(--color-blue);
    min-height: 122px;
}

.metric-tile:nth-child(4n + 2) {
    border-left-color: var(--color-pink);
}

.metric-tile:nth-child(4n + 3) {
    border-left-color: var(--color-yellow);
}

.metric-tile:nth-child(4n + 4) {
    border-left-color: var(--color-green);
}

.metric-number {
    font-size: 2rem;
    font-weight: 700;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.login-card {
    max-width: 430px;
    width: 100%;
}

.login-logo {
    width: 150px;
    border-radius: 8px;
}

@media (max-width: 991px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 1.5rem;
    }

    .hero-logo {
        justify-self: start;
        max-width: 320px;
    }

    .filter-panel {
        position: static;
    }

    .forum-card-header {
        display: block;
    }

    .rating-summary {
        margin-top: 0.75rem;
        min-width: 0;
        text-align: left;
    }

    .admin-layout {
        display: block;
    }

    .admin-sidebar {
        border-right: none;
        border-bottom: 1px solid #edf2f7;
        overflow-x: auto;
    }

    .admin-sidebar .nav {
        flex-direction: row !important;
        min-width: max-content;
    }

    .admin-sidebar .nav-link {
        margin-right: 0.5rem;
    }
}

@media (max-width: 575px) {
    .page-shell {
        padding-top: 92px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .quick-actions .btn {
        width: 100%;
    }

    .admin-content {
        padding: 1rem;
    }
}
