:root {
    --bs-primary: #1f3a8a;
    --bs-secondary: #6c757d;
    --bs-success: #28a745;
    --bs-info: #17a2b8;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #343a40;
}

body {
    background-color: #f3f4f7;
    font-weight: 400;
    color: #5b5b5b;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.navbar-custom {
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 10px;
    padding: 15px 25px;
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    font-weight: 400;
    padding: 10px 10px 10px;
    border-radius: 30px;
    font-size: 16px;
    line-height: 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link:hover {
    background-color: #cbcdcf;
}

.nav-item.verifikasi .nav-link {
    background-color: #1f3a8a;
    color: white;
    font-weight: 400;
}

.nav-item.verifikasi .nav-link:hover {
    background-color: #0056b3;
    color: white;
}

.nav-item {
    margin-right: 15px;
}

.nav-item:last-child {
    margin-right: 0;
}

.carousel-inner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 12px 24px rgba(0, 0, 0, 0.15);
}
.card {
    margin-bottom: 28px;
    border-radius: 15px;
    border: none;
    box-shadow: 0 1px 3px 0 rgba(54, 74, 99, 0.05);
}
.border-dashed-valid {
    border: 2px dashed #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 8px;
}

.border-dashed-invalid {
    border: 2px dashed #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
}

footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e1e1e1;
    font-size: 13px;
}

footer img {
    height: 40px;
}
.custom-table {
    border-radius: 10px;
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-table thead {
    background-color: #021526;
    color: #fff;
    font-weight: bold;
}

.custom-table th {
    padding: 0.5rem 0.75rem;
    text-transform: uppercase;
}

.custom-table td,
.custom-table th {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
}

.custom-table tbody tr:hover {
    background-color: #f5f5f5;
}

.custom-table .badge {
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
}
input[type="password"],
input[type="text"]#passphrase {
    font-family: "Plus Jakarta Sans", sans-serif !important;
}

/* =============================================
   Beranda — Stat Cards
   ============================================= */
.stat-card {
    border-radius: 18px;
    border: none;
    box-shadow: 0 4px 20px rgba(31, 58, 138, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(31, 58, 138, 0.14);
}
.stat-card .icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 26px;
}
.stat-card .stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a94a6;
    margin-bottom: 4px;
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1f3a8a;
    line-height: 1;
}
.stat-card .stat-desc {
    font-size: 12px;
    color: #b0b8c9;
    margin-top: 4px;
}

/* =============================================
   Beranda — Podium Top 3
   ============================================= */
.podium-section {
    background: linear-gradient(135deg, #1f3a8a 0%, #2d52c4 60%, #1a2f73 100%);
    border-radius: 24px;
    padding: 40px 30px 0;
    position: relative;
    overflow: hidden;
    min-height: 520px;
}
.podium-section::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.podium-section::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.podium-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 6px;
}
.podium-subtitle {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0;
}
.podium-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 1;
    margin-top: 16px;
}
.podium-item {
    flex: 1;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

/* Colored block — height = sole visual rank distinction, avatar at top */
.podium-block {
    width: 100%;
    border-radius: 12px 12px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 12px 28px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* Avatar at top of colored block */
.podium-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    margin-bottom: 12px;
}

/* Org name: plain text above the colored block */
.podium-org-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    text-align: center;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    min-height: 2.8em;
    width: 100%;
    padding: 0 4px;
}

.podium-block .rank-badge {
    font-size: 1.4rem;
    line-height: 1;
    margin-bottom: 4px;
}
.podium-block .doc-count {
    font-size: 1.7rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.podium-block .doc-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

/* Rank heights — sole visual distinction between 1st / 2nd / 3rd */
.podium-item.rank-1 .podium-block {
    background: linear-gradient(180deg, #4c6ef5 0%, #3b55d4 100%);
    height: 300px;
}
.podium-item.rank-2 .podium-block {
    background: linear-gradient(180deg, #3b55d4 0%, #2d44b8 100%);
    height: 240px;
}
.podium-item.rank-3 .podium-block {
    background: linear-gradient(180deg, #2d44b8 0%, #1f3a8a 100%);
    height: 190px;
}

/* Avatar accent colours */
.podium-item.rank-1 .podium-avatar { background: linear-gradient(135deg, #f59e0b, #d97706); }
.podium-item.rank-2 .podium-avatar { background: linear-gradient(135deg, #94a3b8, #64748b); }
.podium-item.rank-3 .podium-avatar { background: linear-gradient(135deg, #f97316, #ea580c); }

.podium-empty {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    text-align: center;
    padding: 20px 0;
}

/* =============================================
   Admin Dokumen Form Responsive
   ============================================= */
.dokumen-form-card .card-body {
    padding: 2rem;
}

.dokumen-form .btn {
    white-space: nowrap;
}

.dokumen-form .signer-seq-col {
    text-align: center;
}

.dokumen-form .action-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.5rem;
}

.dokumen-form .action-icon-btn i {
    font-size: 1rem;
    line-height: 1;
}

.dokumen-form .signer-delete-col .action-icon-btn {
    min-height: 100%;
}

.dokumen-form .signer-item .btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.dokumen-form .dokumen-section-divider {
    border: 0;
    border-top: 1px solid #cfd4dc;
    opacity: 1;
    margin: 1.25rem 0 1.5rem;
}

@media (max-width: 991.98px) {
    .dokumen-form-card .card-body {
        padding: 1.25rem;
    }

    .dokumen-form .signer-seq-col {
        text-align: left !important;
    }

    .dokumen-form #addSignerBtn,
    .dokumen-form .dokumen-submit-btn {
        width: 100%;
    }

    .dokumen-form .signer-delete-col .action-icon-btn {
        min-height: 38px;
    }
}
