/* Custom JDIH Styles for Gerow Theme */

/* =============================================
   JDIH STATISTICS STYLING
   jalankan ./publish-assets.sh jika sudah selesai mengedit untuk menerapkan perubahan
   ============================================= */

/* Main Statistics Container */
.jdih-statistics {
    margin: 2rem 0;
    padding: 0;
}

.jdih-statistics .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* Statistics Cards */
.jdih-stat-item {
    background: linear-gradient(135deg, #002e8b 0%, #071e48 100%);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: none;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.jdih-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Gradient Variations */
.jdih-stat-item:nth-child(1) {
    background: linear-gradient(135deg, #002e8b 0%, #071e48 100%);
}

.jdih-stat-item:nth-child(2) {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.jdih-stat-item:nth-child(3) {
    background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
}

.jdih-stat-item:nth-child(4) {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

/* Numbers */
.jdih-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
    position: relative;
    z-index: 2;
}

/* Labels */
.jdih-stat-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

/* =============================================
   HERO SECTION CUSTOMIZATION
   ============================================= */

.jdih-hero {
    background: linear-gradient(135deg, #768db7 0%, #071e48 100%);
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.jdih-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="0,0 1000,0 1000,100 0,80"></polygon></svg>');
    background-size: cover;
    background-position: bottom;
}

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

.jdih-hero h1 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.jdih-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* =============================================
   CATEGORY CARDS ENHANCED
   ============================================= */

.jdih-category-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: transparent;
    position: relative;
}

.jdih-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #002e8b, #071e48);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.jdih-category-card:hover::before {
    transform: scaleX(1);
}

.jdih-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0);
}

/* =============================================
   DOCUMENT TABLE STYLING
   ============================================= */

.jdih-document-table {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.jdih-document-table .table thead th {
    background: linear-gradient(135deg, #002e8b 0%, #071e48 100%);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1.25rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jdih-document-table .table tbody tr {
    transition: all 0.2s ease;
    cursor: pointer;
}

.jdih-document-table .table tbody tr:hover {
    background: linear-gradient(90deg, rgba(0, 46, 139, 0.05), rgba(0, 153, 255, 0.08));
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 46, 139, 0.1);
}

.jdih-document-table .table tbody td {
    padding: 1.25rem;
    border-color: #e9ecef;
    vertical-align: middle;
}

/* =============================================
   SEARCH BOX ENHANCEMENT
   ============================================= */

.jdih-search-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.jdih-search-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 46, 139, 0.02), rgba(0, 153, 255, 0.02));
    border-radius: 16px;
}

/* =============================================
   FILTER TABS
   ============================================= */

.jdih-filter-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    margin-right: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.jdih-filter-tabs .nav-link:hover {
    background: rgba(0, 46, 139, 0.1);
    color: #002e8b;
}

.jdih-filter-tabs .nav-link.active {
    background: #002e8b;
    color: white;
}

/* =============================================
   JDIH DOCUMENT LINKS & HOVER EFFECTS
   ============================================= */

/* Document Links */
.jdih-document-link {
    color: #002e8b;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.jdih-document-link:hover {
    color: #071e48;
    text-decoration: none;
}

.jdih-document-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #002e8b, #071e48);
    transition: width 0.3s ease;
}

.jdih-document-link:hover::after {
    width: 100%;
}

/* Document List Items */
.jdih-document-item {
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.jdih-document-item:hover {
    background: linear-gradient(135deg, rgba(0, 46, 139, 0.03), rgba(0, 153, 255, 0.05));
    border-color: rgba(0, 46, 139, 0.1);
    transform: translateX(5px);
    box-shadow: 0 3px 12px rgba(0, 46, 139, 0.08);
}

/* Card Hover Effects */
.jdih-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e9ecef;
}

.jdih-card:hover {
    border-color: rgba(0, 46, 139, 0.2);
    box-shadow: 0 8px 25px rgba(0, 46, 139, 0.12);
    transform: translateY(-3px);
}

/* =============================================
   BUTTONS
   ============================================= */

.btn-jdih-primary {
    background: linear-gradient(135deg, #002e8b 0%, #071e48 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.btn-jdih-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 46, 139, 0.3);
    color: white;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 768px) {
    .jdih-hero {
        padding: 40px 0;
    }
    
    .jdih-hero h1 {
        font-size: 2rem;
    }
    
    .jdih-stat-item {
        height: 140px;
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .jdih-stat-number {
        font-size: 2rem;
    }
    
    .jdih-stat-label {
        font-size: 0.875rem;
    }
    
    .jdih-category-card {
        margin-bottom: 1rem;
    }
    
    .jdih-document-table .table {
        font-size: 0.875rem;
    }
    
    .jdih-search-box {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .jdih-stat-item {
        height: 120px;
        padding: 1rem;
    }
    
    .jdih-stat-number {
        font-size: 1.75rem;
    }
}

/* =============================================
   DARK MODE SUPPORT
   ============================================= */

@media (prefers-color-scheme: dark) {
    .jdih-document-table,
    .jdih-search-box,
    .jdih-card {
        background: #2d3748;
        color: white;
        border-color: #4a5568;
    }
    
    .jdih-category-card {
        background: transparent;
        color: white;
        border-color: #4a5568;
    }
    
    .jdih-document-table .table tbody tr:hover {
        background: linear-gradient(90deg, rgba(0, 153, 255, 0.1), rgba(0, 46, 139, 0.08));
        box-shadow: 0 2px 8px rgba(0, 153, 255, 0.2);
    }
    
    .jdih-document-item:hover {
        background: linear-gradient(135deg, rgba(0, 153, 255, 0.08), rgba(0, 46, 139, 0.05));
        border-color: rgba(0, 153, 255, 0.2);
    }
    
    .jdih-document-link {
        color: #60a5fa;
    }
    
    .jdih-document-link:hover {
        color: #93c5fd;
    }
}
