:root {
    --gapasdap-blue: #0b5ed7;
    --gapasdap-navy: #0f172a;
    --soft-bg: #f3f6fb;
    --card-radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: var(--soft-bg);
    color: #1f2937;
    font-size: 16px;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 290px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    padding: 24px;
    background: linear-gradient(180deg, #0f172a 0%, #11326b 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 34px;
}

.brand-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255,255,255,0.13);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
}

.brand-title {
    font-weight: 800;
    letter-spacing: .08em;
    font-size: 18px;
}

.brand-subtitle {
    color: rgba(255,255,255,.7);
    font-size: 14px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-link-item {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    transition: .18s ease;
}

.nav-link-item:hover,
.nav-link-item.active {
    color: #fff;
    background: rgba(255,255,255,.14);
}

.sidebar-user {
    margin-top: auto;
    border-radius: 20px;
    background: rgba(255,255,255,.11);
    padding: 18px;
}

.main-content {
    margin-left: 290px;
    width: calc(100% - 290px);
    padding: 28px;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.page-title {
    font-size: 31px;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.page-subtitle {
    color: #64748b;
    font-size: 17px;
    margin-top: 6px;
}

.card-soft {
    border: 0;
    border-radius: var(--card-radius);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.stat-card {
    border: 0;
    border-radius: var(--card-radius);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
    height: 100%;
}

.stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #e8f1ff;
    color: var(--gapasdap-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.stat-label {
    color: #64748b;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .06em;
    font-weight: 800;
}

.stat-value {
    font-size: 30px;
    font-weight: 850;
    color: #0f172a;
}

.form-control,
.form-select,
.btn {
    min-height: 48px;
    border-radius: 14px;
    font-size: 16px;
}

.form-label {
    font-weight: 750;
    color: #273449;
}

.btn-lg {
    min-height: 54px;
    font-weight: 800;
}

.table {
    vertical-align: middle;
}

.table thead th {
    color: #64748b;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: #f8fafc;
    padding-top: 16px;
    padding-bottom: 16px;
}

.table tbody td {
    padding-top: 16px;
    padding-bottom: 16px;
}

.badge-soft-success {
    background: #dcfce7;
    color: #166534;
}

.badge-soft-warning {
    background: #fef3c7;
    color: #92400e;
}

.login-page {
    min-height: 100vh;
    background: radial-gradient(circle at top left, #dbeafe 0, transparent 32%), #f3f6fb;
}

.login-hero {
    background: linear-gradient(135deg, #0f172a 0%, #124499 100%);
    border-radius: 32px;
    color: white;
    padding: 42px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}

.login-icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: rgba(255,255,255,.13);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.feature-box {
    border-radius: 22px;
    background: rgba(255,255,255,.12);
    padding: 20px;
    min-height: 145px;
}

.filter-box {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    padding: 18px;
}

.upload-label {
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    background: #f8fafc;
    transition: .16s ease;
}

.upload-label:hover {
    border-color: var(--gapasdap-blue);
    background: #eff6ff;
}

.mobile-topbar {
    background: #fff;
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
}

.empty-state {
    text-align: center;
    padding: 48px 18px;
    color: #64748b;
}

@media (max-width: 991px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 16px;
    }

    .page-header {
        flex-direction: column;
    }

    .page-title {
        font-size: 26px;
    }
}

.page-header .btn {
    white-space: nowrap;
}

@media (max-width: 991px) {
    .page-header {
        flex-direction: column;
    }

    .page-header > .d-flex {
        width: 100%;
    }

    .page-header > .d-flex .btn {
        flex: 1 1 auto;
    }
}

.ship-check-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    min-height: 96px;
    transition: .16s ease;
}

.ship-check-card:hover {
    border-color: var(--gapasdap-blue);
    background: #eff6ff;
}

.ship-check-card input {
    width: 22px;
    height: 22px;
    margin-top: 3px;
    flex: 0 0 auto;
}

.ship-check-card strong {
    display: block;
    color: #0f172a;
}

.ship-check-card small {
    display: block;
    color: #64748b;
    margin-top: 3px;
}

.ship-access-disabled {
    opacity: .58;
}

.ship-access-disabled .ship-check-card {
    cursor: not-allowed;
}

.export-ship-panel {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #f8fafc;
    padding: 18px;
}

.ship-search-input {
    min-width: 260px;
}

.ship-export-grid {
    max-height: 360px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    padding: 4px;
}

.ship-export-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    min-height: 100px;
    transition: .16s ease;
}

.ship-export-card:hover {
    border-color: var(--gapasdap-blue);
    background: #eff6ff;
}

.ship-export-card input {
    width: 22px;
    height: 22px;
    margin-top: 3px;
    flex: 0 0 auto;
}

.ship-export-card strong,
.ship-export-card small {
    display: block;
}

.ship-export-card strong {
    color: #0f172a;
}

.ship-export-card small {
    color: #64748b;
    margin-top: 3px;
}

@media (max-width: 575px) {
    .ship-search-input {
        min-width: 100%;
    }

    .ship-export-grid {
        grid-template-columns: 1fr;
    }
}


.period-preview-card {
    border: 1px solid rgba(13, 110, 253, 0.18);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(255, 255, 255, 0.95));
    border-radius: 22px;
    padding: 1.15rem 1.25rem;
}

.period-preview-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d6efd;
    color: #ffffff;
    font-size: 1.35rem;
    flex: 0 0 auto;
}

.period-preview-label {
    color: #5b6b82;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.period-preview-title {
    color: #10233f;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    margin-top: 0.15rem;
}

.period-preview-help {
    color: #5b6b82;
    margin-top: 0.25rem;
    font-size: 0.98rem;
}

.badge-soft-info {
    background: #e0f2fe;
    color: #075985;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 850;
    color: #10233f;
}

.section-title i {
    color: var(--gapasdap-blue);
    font-size: 1.35rem;
}

.report-items-wrapper {
    display: grid;
    gap: 18px;
}

.report-item-card {
    border: 1px solid #dbe3ef;
    border-radius: 24px;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.report-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 14px;
    margin-bottom: 4px;
}

.report-item-title {
    font-size: 1.06rem;
    font-weight: 850;
    color: #0f172a;
}

.report-item-incomplete {
    border-color: #f0d48a;
    background: linear-gradient(180deg, #fffdf5 0%, #ffffff 55%);
}

.report-item-complete {
    border-color: #b7dfc4;
}

.report-item-incomplete .report-item-title::after {
    content: ' — belum lengkap';
    color: #9a6700;
    font-size: .88rem;
    font-weight: 750;
}

.report-item-complete .report-item-title::after {
    content: ' — lengkap';
    color: #166534;
    font-size: .88rem;
    font-weight: 750;
}

@media (max-width: 575px) {
    .report-item-header {
        flex-direction: column;
    }

    .report-item-header .btn {
        width: 100%;
    }
}
