/* =============================================
   DOKUMEN BEASISWA — User Page Styles
   ============================================= */

:root {
    --dk-blue: #5B9BF0;
    --dk-blue-deep: #3B7DD8;
    --dk-blue-light: #EBF3FE;
    --dk-gold: #F3C80E;
    --dk-green: #10b981;
    --dk-green-light: #D1FAE5;
    --dk-red-light: #FEE2E2;
    --dk-gray: #f8fafc;
    --dk-border: #e8f0fb;
    --dk-text: #1a1a2e;
    --dk-muted: #64748b;
    --dk-radius: 20px;
}

/* ── Topbar ── */
.dk-topbar {
    background: white;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.dk-topbar a {
    display: flex;
    align-items: center;
    color: var(--dk-blue);
}
.dk-topbar h1 {
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    margin: 0;
    flex: 1;
    font-family: 'Inter', sans-serif;
}

/* ── Hero Banner ── */
.dk-hero {
    background: linear-gradient(135deg, #5B9BF0 0%, #3B7DD8 50%, #2563EB 100%);
    padding: 28px 18px 48px;
    position: relative;
    overflow: hidden;
}
.dk-hero::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 150px; height: 150px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.dk-hero::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -20px;
    width: 110px; height: 110px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}
.dk-hero-emoji { font-size: 28px; margin-bottom: 6px; display: block; }
.dk-hero-title {
    font-size: 20px;
    font-weight: 900;
    color: white;
    margin-bottom: 5px;
    letter-spacing: -0.3px;
}
.dk-hero-sub {
    font-size: 11.5px;
    color: rgba(255,255,255,0.85);
    line-height: 1.55;
    max-width: 260px;
}
.dk-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50px;
    padding: 5px 12px;
    margin-top: 12px;
    letter-spacing: 0.5px;
}

/* ── Stats Row ── */
.dk-stats {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}
.dk-stat {
    flex: 1;
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 14px;
    padding: 12px 6px;
    text-align: center;
    transition: transform 0.25s ease;
}
.dk-stat:hover { transform: translateY(-3px); }
.dk-stat-val {
    font-size: 20px;
    font-weight: 900;
    color: white;
    display: block;
    line-height: 1;
}
.dk-stat-key {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    display: block;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Search & Filter Wrapper ── */
.dk-sticky-controls {
    position: sticky;
    top: 52px;
    z-index: 70;
    background: white;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--dk-border);
}

/* ── Search Bar ── */
.dk-search-wrap {
    padding: 14px 16px 10px;
    background: white;
    margin-top: -20px;
    border-radius: var(--dk-radius) var(--dk-radius) 0 0;
    position: relative;
    z-index: 2;
}
.dk-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--dk-gray);
    border-radius: 14px;
    padding: 12px 16px;
    border: 1.5px solid transparent;
    transition: all 0.3s ease;
}
.dk-search:focus-within {
    background: white;
    border-color: var(--dk-blue);
    box-shadow: 0 0 0 4px rgba(91, 155, 240, 0.1);
}
.dk-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 12.5px;
    background: transparent;
    color: var(--dk-text);
    font-family: inherit;
}
.dk-search input::placeholder { color: #aab4c4; }
.dk-search-btn {
    background: var(--dk-blue);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 9px 18px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}
.dk-search-btn:hover {
    background: var(--dk-blue-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 125, 216, 0.3);
}

/* ── Filter Pills ── */
.dk-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 16px 12px;
    background: white;
    scrollbar-width: none;
}
.dk-filters::-webkit-scrollbar { display: none; }
.dk-ftab {
    font-size: 11px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 50px;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1.5px solid transparent;
    cursor: pointer;
    user-select: none;
}
.dk-ftab.active {
    background: var(--dk-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(91, 155, 240, 0.35);
}
.dk-ftab.inactive {
    background: var(--dk-gray);
    color: var(--dk-muted);
    border-color: var(--dk-border);
}
.dk-ftab.inactive:hover {
    background: var(--dk-blue-light);
    color: var(--dk-blue);
    border-color: var(--dk-blue);
}

/* ── Body ── */
.dk-body {
    background: var(--dk-gray);
    padding: 16px 16px 130px;
    min-height: 60vh;
}

/* ── Unlock Banner ── */
.dk-unlock-banner {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 22px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transition: transform 0.25s ease;
}
.dk-unlock-banner:hover { transform: translateY(-2px); }
.dk-unlock-banner::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 100px; height: 100px;
    background: rgba(91, 155, 240, 0.1);
    border-radius: 50%;
}
.dk-unlock-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.dk-unlock-text h3 {
    font-size: 13px; font-weight: 800; color: white;
    margin-bottom: 3px; line-height: 1.3;
}
.dk-unlock-text p {
    font-size: 10px; color: #94a3b8; line-height: 1.4;
}
.dk-unlock-cta {
    background: var(--dk-gold);
    color: #1a1a2e;
    font-size: 11px;
    font-weight: 900;
    padding: 9px 16px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(243, 200, 14, 0.3);
}
.dk-unlock-cta:hover { transform: scale(1.05); }

/* ── Section Title ── */
.dk-sec-title {
    font-size: 14px;
    font-weight: 900;
    color: var(--dk-text);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dk-sec-dot {
    width: 8px; height: 8px;
    background: var(--dk-blue);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.dk-sec-sub {
    font-size: 11px;
    color: var(--dk-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ── Document Cards ── */
.dk-list { display: flex; flex-direction: column; gap: 14px; }

.dk-card {
    background: white;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.04);
    border: 1.5px solid var(--dk-border);
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: all 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}
.dk-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(91, 155, 240, 0.14);
    border-color: rgba(91, 155, 240, 0.35);
}
/* accent strip */
.dk-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 4px; height: 100%;
    border-radius: 18px 0 0 18px;
    background: var(--dk-green);
}
.dk-card.member-only::before { background: var(--dk-gold); }

/* Thumbnail column */
.dk-card-thumb {
    width: 76px;
    height: 98px;
    border-radius: 12px;
    background: #f1f5f9;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1.5px solid var(--dk-border);
    padding: 6px;
}

.dk-document-capture {
    width: 100%;
    height: 100%;
    background: #EBF3FE;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0.5px solid #e2e8f0;
}

.dk-doc-inner-title {
    font-size: 5px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 2px;
    border-bottom: 0.5px solid #e2e8f0;
    padding-bottom: 2px;
}

.dk-doc-inner-content {
    font-size: 4px;
    line-height: 1.5;
    color: #475569;
    text-align: left;
    word-break: break-word;
}

.dk-doc-file-info, .dk-doc-link-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 4px;
    text-align: center;
}

.dk-doc-file-info .file-icon { font-size: 14px; }
.dk-doc-file-info .file-name { font-size: 5px; color: #64748b; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dk-card-thumb-lock {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Card content column */
.dk-card-content { flex: 1; min-width: 0; }

/* Top row: tag + badge */
.dk-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 6px;
}
.dk-tag {
    font-size: 9.5px;
    font-weight: 800;
    background: #e0ecff;
    color: var(--dk-blue-deep);
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}
.dk-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}
.dk-badge.free {
    background: var(--dk-green-light);
    color: #059669;
}
.dk-badge.member {
    background: #FFF3CD;
    color: #B45309;
}

.dk-card-title {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--dk-text);
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dk-card-meta {
    font-size: 10px;
    color: var(--dk-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.dk-card-excerpt {
    font-size: 10.5px;
    color: #7a8599;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bottom action row */
.dk-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dk-detail-btn {
    flex: 1;
    background: var(--dk-blue-light);
    color: var(--dk-blue-deep);
    border: 1.5px solid rgba(91, 155, 240, 0.25);
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: inherit;
}
.dk-detail-btn:hover {
    background: var(--dk-blue);
    color: white;
    border-color: var(--dk-blue);
    box-shadow: 0 4px 12px rgba(91, 155, 240, 0.3);
}

.dk-icon-btn {
    width: 30px; height: 30px;
    background: var(--dk-gray);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid var(--dk-border);
    color: var(--dk-muted);
    flex-shrink: 0;
}
.dk-icon-btn:hover {
    background: var(--dk-blue-light);
    color: var(--dk-blue);
    border-color: var(--dk-blue);
}

/* ── Empty State ── */
.dk-empty {
    text-align: center;
    padding: 60px 24px;
    color: #aab4c4;
}
.dk-empty-icon { font-size: 48px; margin-bottom: 12px; }
.dk-empty h3 { font-size: 14px; font-weight: 700; color: #94a3b8; margin-bottom: 6px; }
.dk-empty p { font-size: 12px; }

/* ── Pagination ── */
.dk-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 0 8px;
    flex-wrap: wrap;
}
.dk-page-btn {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid var(--dk-border);
    color: var(--dk-muted);
    background: white;
    transition: all 0.2s ease;
    cursor: pointer;
}
.dk-page-btn.active {
    background: var(--dk-blue);
    color: white;
    border-color: var(--dk-blue);
    box-shadow: 0 4px 12px rgba(91, 155, 240, 0.35);
}
.dk-page-btn:hover:not(.active) {
    background: var(--dk-blue-light);
    color: var(--dk-blue);
    border-color: var(--dk-blue);
}
.dk-page-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* ── UniLife Footer Banner ── */
.dk-unilife-banner {
    background: linear-gradient(135deg, var(--dk-blue) 0%, var(--dk-blue-deep) 100%);
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    box-shadow: 0 8px 25px rgba(91, 155, 240, 0.25);
}
.dk-unilife-logo-wrap {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.dk-unilife-text h4 {
    font-size: 13px; font-weight: 900; color: white; margin-bottom: 2px;
}
.dk-unilife-text p {
    font-size: 10.5px; color: rgba(255,255,255,0.8);
}

/* ── Custom Pagination Override ── */
.dk-pagination-wrap nav {
    display: flex;
    justify-content: center;
}
.dk-pagination-wrap .pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
.dk-pagination-wrap .page-item .page-link {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    text-decoration: none;
    border: 1.5px solid var(--dk-border);
    color: var(--dk-muted);
    background: white;
    transition: all 0.2s ease;
}
.dk-pagination-wrap .page-item.active .page-link {
    background: var(--dk-blue);
    color: white;
    border-color: var(--dk-blue);
    box-shadow: 0 4px 12px rgba(91, 155, 240, 0.35);
}
.dk-pagination-wrap .page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}
.dk-pagination-wrap .page-item .page-link:hover {
    background: var(--dk-blue-light);
    color: var(--dk-blue);
    border-color: var(--dk-blue);
}

/* ── Animation ── */
@keyframes float-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.dk-card { animation: float-in 0.4s ease both; }
.dk-card:nth-child(1) { animation-delay: 0.05s; }
.dk-card:nth-child(2) { animation-delay: 0.1s; }
.dk-card:nth-child(3) { animation-delay: 0.15s; }
.dk-card:nth-child(4) { animation-delay: 0.2s; }
.dk-card:nth-child(5) { animation-delay: 0.25s; }
.dk-card:nth-child(6) { animation-delay: 0.3s; }
