@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --rkp-primary: #19c37d;
    --rkp-primary-light: #30c27c;
    --rkp-primary-dark: #0f8ee0;
    --rkp-secondary: #0f1c2d;
    --rkp-bg: #020b16;
    --rkp-card-bg: rgba(7, 19, 33, 0.78);
    --text-dark: #e6f4ff;
    --text-muted: rgba(230, 244, 255, 0.7);
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 30px 70px rgba(25, 195, 125, 0.2);
    --radius-lg: 0;
    --radius-md: 0;
    --radius-sm: 0;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background: var(--rkp-bg) !important;
    margin: 0;
    color: var(--text-dark);
    padding-top: 0;
}

body.has-global-sidebars {
    background: var(--rkp-bg) !important;
}

.dp-main {
    background: var(--rkp-bg) !important;
}

.dp-body {
    background: var(--rkp-bg) !important;
}

/* Hero Section */
.rkp-hero {
    background: radial-gradient(circle at top right, rgba(25, 195, 125, 0.25), transparent),
        linear-gradient(135deg, rgba(10, 22, 40, 0.95), rgba(26, 47, 74, 0.95));
    color: var(--text-dark);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    max-height: 300px; /* Maksimal tinggi 300px */
    display: flex;
    align-items: center;
}

.rkp-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.rkp-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(48, 194, 124, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.rkp-hero .dp-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Icon RKPDes Besar */
.rkp-hero__icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.rkp-hero__icon {
    font-size: clamp(80px, calc(300px * 0.4), 120px); /* Responsif terhadap tinggi 300px (40% dari tinggi) */
    color: var(--rkp-primary);
    opacity: 0.6;
    animation: clipboard-pulse 2s ease-in-out infinite;
    text-shadow: 0 4px 20px rgba(25, 195, 125, 0.3);
}

@keyframes clipboard-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.rkp-hero__content {
    position: relative;
    z-index: 2;
    padding-left: 40px; /* 2 tabulasi dari kiri */
}

.rkp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: clamp(8px, calc(300px * 0.033), 10px) clamp(18px, calc(300px * 0.073), 22px);
    border-radius: 50px;
    background: rgba(25, 195, 125, 0.2);
    border: 1px solid rgba(25, 195, 125, 0.3);
    backdrop-filter: blur(10px);
    color: var(--rkp-primary);
    font-size: clamp(0.75rem, calc(300px * 0.03), 0.9rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: clamp(16px, calc(300px * 0.08), 24px);
    box-shadow: 0 4px 16px rgba(25, 195, 125, 0.2);
    margin-left: 40px; /* 2 tabulasi dari kiri */
}

.rkp-hero__badge i {
    font-size: 1.1rem;
    animation: file-pulse 2s ease-in-out infinite;
}

@keyframes file-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.rkp-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(1.5rem, calc(300px * 0.08), 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    padding-left: 40px; /* 2 tabulasi dari kiri */
}

.rkp-hero p {
    margin: 0;
    font-size: clamp(0.85rem, calc(300px * 0.032), 0.95rem);
    line-height: 1.6;
    color: var(--text-muted);
    padding-left: 40px; /* 2 tabulasi dari kiri */
}

.rkp-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    position: relative;
    z-index: 2;
    padding-left: 40px; /* 2 tabulasi dari kiri */
}

.rkp-hero__stats .rkp-stat-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(25, 195, 125, 0.2);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rkp-hero__stats .rkp-stat-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--rkp-primary), var(--rkp-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.rkp-hero__stats .rkp-stat-card:hover .rkp-stat-card__icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(25, 195, 125, 0.4);
}

.rkp-hero__stats .rkp-stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--rkp-primary);
    background: rgba(0, 0, 0, 0.4);
}

.rkp-hero__stats .rkp-stat-value {
    font-size: clamp(1.5rem, calc(300px * 0.067), 2rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: clamp(6px, calc(300px * 0.027), 8px);
}

.rkp-hero__stats .rkp-stat-label {
    font-size: clamp(0.7rem, calc(300px * 0.028), 0.85rem);
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Main Content */
.rkp-content {
    margin: -40px auto 60px; /* Negative margin untuk overlap sedikit, kemudian 40px jarak */
    padding: 0;
    position: relative;
    z-index: 1;
}

.rkp-card {
    background: var(--rkp-card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-card);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.rkp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(20, 137, 87, 0.3) 50%, transparent 100%);
    pointer-events: none;
}

.section-card__header {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    padding-left: 40px; /* 2 tabulasi dari kiri */
}

.section-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(25, 195, 125, 0.2);
    border: 1px solid rgba(25, 195, 125, 0.3);
    color: var(--rkp-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-card__badge i {
    font-size: 1rem;
}

.section-card__header h2 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-dark);
}

.section-card__header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 24px;
    padding-left: 40px; /* 2 tabulasi dari kiri */
}

.filter-grid input,
.filter-grid select {
    border-radius: 14px;
    border: 1px solid var(--border-light);
    padding: 10px 12px;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-dark);
}

.filter-grid input::placeholder {
    color: var(--text-muted);
}

.filter-grid input:focus,
.filter-grid select:focus {
    outline: none;
    border-color: var(--rkp-primary);
    background: rgba(0, 0, 0, 0.4);
}

.btn-filter {
    border: 1px solid var(--rkp-primary);
    border-radius: 14px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--rkp-primary), var(--rkp-primary-light));
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    background: linear-gradient(135deg, var(--rkp-primary-light), var(--rkp-primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 195, 125, 0.4);
}

.rkp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 24px;
    padding-left: 40px; /* 2 tabulasi dari kiri */
}

.rkp-stat-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 18px;
    padding: 16px;
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.3s ease;
}

.rkp-stat-card__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--rkp-primary), var(--rkp-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s ease;
}

.rkp-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(25, 195, 125, 0.2);
    border-color: var(--rkp-primary);
    background: rgba(0, 0, 0, 0.4);
}

.rkp-stat-card:hover .rkp-stat-card__icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(25, 195, 125, 0.4);
}

.rkp-stat-card small {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-size: 0.75rem;
    display: block;
    margin-bottom: 8px;
}

.rkp-stat-card strong {
    display: block;
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    margin-top: 8px;
    color: var(--text-dark);
    font-weight: 700;
}

.rkp-table-wrapper {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    overflow-x: auto;
    margin-top: 24px;
    padding-left: 40px; /* 2 tabulasi dari kiri */
}

.rkp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.rkp-table thead {
    background: linear-gradient(135deg, var(--rkp-primary), var(--rkp-primary-light));
    color: white;
}

.rkp-table th,
.rkp-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
    text-align: left;
    color: var(--text-dark);
}

.rkp-table tbody tr {
    background: rgba(0, 0, 0, 0.2);
}

.rkp-table tbody tr:nth-child(even) {
    background: rgba(25, 195, 125, 0.05);
}

.rkp-table tbody tr:hover {
    background: rgba(25, 195, 125, 0.1);
}

.badge-outline {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(25, 195, 125, 0.3);
    font-size: 0.85rem;
    color: var(--rkp-primary);
    background: rgba(25, 195, 125, 0.15);
}

.empty-state {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 960px) {
    .rkp-hero {
        padding: 30px 0;
        max-height: 280px;
    }
    
    .rkp-hero .dp-container {
        grid-template-columns: auto 1fr;
        gap: 24px;
    }
    
    .rkp-hero__icon {
        font-size: clamp(60px, calc(280px * 0.29), 80px);
    }
    
    .rkp-hero__content {
        padding-left: 30px;
    }
    
    .rkp-hero__badge {
        margin-left: 30px;
        font-size: clamp(0.7rem, calc(280px * 0.029), 0.85rem);
        padding: clamp(6px, calc(280px * 0.021), 8px) clamp(14px, calc(280px * 0.05), 18px);
    }
    
    .rkp-hero h1 {
        padding-left: 30px;
        font-size: clamp(1.3rem, calc(280px * 0.07), 2rem);
    }
    
    .rkp-hero p {
        padding-left: 30px;
        font-size: clamp(0.8rem, calc(280px * 0.029), 0.9rem);
    }
    
    .rkp-hero__stats {
        grid-template-columns: repeat(2, 1fr);
        padding-left: 30px;
    }
    
    .rkp-hero__stats .rkp-stat-card__icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .rkp-hero__stats .rkp-stat-value {
        font-size: clamp(1.3rem, calc(280px * 0.057), 1.75rem);
    }
    
    .rkp-hero__stats .rkp-stat-label {
        font-size: clamp(0.65rem, calc(280px * 0.025), 0.75rem);
    }
    
    .rkp-content {
        margin: -40px auto 40px;
    }
    
    .rkp-card {
        padding: 32px 24px;
    }
    
    .section-card__header,
    .filter-grid,
    .rkp-stats-grid,
    .rkp-table-wrapper {
        padding-left: 30px;
    }
}

@media (max-width: 768px) {
    .rkp-hero {
        padding: 20px 0;
        max-height: 250px;
    }
    
    .rkp-hero .dp-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .rkp-hero__icon-wrapper {
        display: none; /* Sembunyikan icon besar di mobile */
    }
    
    .rkp-hero h1 {
        font-size: clamp(1.2rem, calc(250px * 0.064), 1.8rem);
    }
    
    .rkp-hero__content {
        padding-left: 20px;
    }
    
    .rkp-hero__badge {
        margin-left: 20px;
        font-size: clamp(0.65rem, calc(250px * 0.032), 0.75rem);
        padding: clamp(6px, calc(250px * 0.024), 8px) clamp(12px, calc(250px * 0.048), 16px);
    }
    
    .rkp-hero h1 {
        padding-left: 20px;
        font-size: clamp(1.2rem, calc(250px * 0.064), 1.8rem);
    }
    
    .rkp-hero p {
        padding-left: 20px;
        font-size: clamp(0.75rem, calc(250px * 0.032), 0.85rem);
    }
    
    .rkp-hero__stats {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-left: 20px;
    }
    
    .rkp-hero__stats .rkp-stat-card__icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .rkp-hero__stats .rkp-stat-value {
        font-size: clamp(1.2rem, calc(250px * 0.056), 1.5rem);
    }
    
    .rkp-hero__stats .rkp-stat-label {
        font-size: clamp(0.6rem, calc(250px * 0.024), 0.7rem);
    }
    
    .rkp-content {
        margin: -40px auto 30px;
    }
    
    .rkp-card {
        padding: 24px 20px;
    }
    
    .section-card__header h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .section-card__header,
    .filter-grid,
    .rkp-stats-grid,
    .rkp-table-wrapper {
        padding-left: 20px;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .rkp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rkp-table th,
    .rkp-table td {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .rkp-table {
        min-width: 680px;
    }
}
