/* Pusat Aplikasi SMK Negeri 1 Luwuk */

:root {
    --apl-primary: #0b5ed7;
    --apl-dark: #12314f;
    --apl-soft: #f3f7fb;
    --apl-border: #dce7f1;
}

html, body {
    min-height: 100%;
}

body {
    background: var(--apl-soft);
    color: #24384b;
}

.top-strip {
    height: 4px;
    background: linear-gradient(90deg, #0b5ed7, #20c997);
}

.navbar-brand strong {
    letter-spacing: .2px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 80% 10%, rgba(32, 201, 151, .24), transparent 30%),
        linear-gradient(135deg, #0c3f74, #0b5ed7 58%, #1fa98e);
    color: white;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to left, black, transparent 80%);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.search-box {
    background: rgba(255,255,255,.97);
    padding: 10px;
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(5, 37, 66, .24);
}

.search-box .form-control,
.search-box .btn {
    min-height: 50px;
    border-radius: 12px;
}

.section-title {
    color: var(--apl-dark);
    font-weight: 700;
}

.category-card,
.software-card {
    height: 100%;
    border: 1px solid var(--apl-border);
    border-radius: 16px;
    background: white;
    box-shadow: 0 8px 28px rgba(28, 62, 91, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.category-card:hover,
.software-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(28, 62, 91, .11);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eaf3ff;
    color: var(--apl-primary);
    font-weight: 700;
}

.software-icon-placeholder {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    background: #edf4fb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #53728f;
    font-weight: 700;
}

.site-footer {
    border-top: 1px solid var(--apl-border);
    background: #fff;
}

.empty-state {
    padding: 36px;
    border: 1px dashed #c7d7e5;
    border-radius: 16px;
    background: rgba(255,255,255,.65);
    text-align: center;
    color: #688096;
}

@media (max-width: 767.98px) {
    .hero {
        min-height: 420px;
    }
}


/* ==========================================================
   Stage 8A - Public Repository
   ========================================================== */

.public-nav-search {
    width: 190px;
}

.public-nav-search .form-control {
    border-radius: 10px;
}

.public-page-head {
    background:
        radial-gradient(circle at 90% 15%, rgba(32, 201, 151, .10), transparent 30%),
        linear-gradient(180deg, #ffffff, #f3f7fb);
    border-bottom: 1px solid var(--apl-border);
}

.public-search-panel {
    background: #fff;
    border: 1px solid var(--apl-border);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 10px 28px rgba(28, 62, 91, .06);
}

.public-search-panel .form-control,
.public-search-panel .btn {
    border-radius: 10px;
}

.public-software-card {
    display: flex;
    flex-direction: column;
    min-height: 245px;
}

.software-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.public-meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid #dce7f1;
    border-radius: 999px;
    background: #f8fbfe;
    color: #506b82;
    font-size: .76rem;
}

.software-detail-icon {
    width: 86px;
    height: 86px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eaf3ff, #e8faf5);
    color: var(--apl-primary);
    font-size: 2rem;
    font-weight: 800;
    border: 1px solid #d7e7f5;
}

.public-summary-card,
.public-content-card,
.public-side-card {
    background: #fff;
    border: 1px solid var(--apl-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(28, 62, 91, .055);
}

.public-summary-card {
    padding: 22px;
}

.public-content-card {
    padding: 26px;
}

.public-side-card {
    padding: 22px;
}

.public-summary-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--apl-dark);
}

.public-summary-label {
    color: #768da2;
    font-size: .75rem;
}

.public-prose {
    color: #40586d;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.public-tag {
    background: #eaf3ff;
    color: #0b5ed7;
    border: 1px solid #d6e7fb;
    font-weight: 600;
}

.public-info-list dt {
    color: #6c8295;
    font-weight: 600;
}

.public-info-list dd {
    overflow-wrap: anywhere;
}

.public-version-accordion .accordion-item {
    border-color: var(--apl-border);
}

.public-version-accordion .accordion-button:not(.collapsed) {
    color: #12314f;
    background: #f1f7fd;
    box-shadow: none;
}

.public-file-table th {
    white-space: nowrap;
    color: #637b8f;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .025em;
}

.public-file-table td {
    min-width: 110px;
}

.public-file-table td:first-child {
    min-width: 240px;
}

.hash-value {
    display: block;
    max-width: 430px;
    white-space: normal;
    overflow-wrap: anywhere;
    margin-top: 5px;
}

.public-subcategory-card {
    min-height: 105px;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--apl-border);
    border-radius: 14px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.public-subcategory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(28, 62, 91, .08);
}

@media (max-width: 991.98px) {
    .public-nav-search {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .software-detail-icon {
        width: 70px;
        height: 70px;
        border-radius: 18px;
        font-size: 1.5rem;
    }

    .public-content-card {
        padding: 20px;
    }
}
