.page-header {
    font-weight: 600;
    margin-bottom: 20px;
}

.table-harga th {
    background: #f5f7fb;
    text-align: center;
    font-weight: 600;
}

.table-harga td {
    vertical-align: middle;
}

.sekarang {
    font-weight: 600;
    color: #0d6efd;
}

.kemarin {
    font-weight: 600;
    color: #6f42c1;
}

.right {
    text-align: right;
}

.naik {
    color: #dc3545;
    font-weight: 600;
}

.turun {
    color: #198754;
    font-weight: 600;
}

.stabil {
    color: #6c757d;
}

.kategori {
    background: #eef3ff;
    font-weight: 600;
}

.table-harga tbody tr:hover {
    background: #f8f9ff;
}

/* Styling untuk Tabel Siskaberpabo */
#siskaperbapo-table-wrapper {
    margin-top: 40px;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

#siskaperbapo-table-wrapper h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #3498db;
}

#siskaperbapo-table-wrapper .table {
    font-size: 0.85rem;
    margin-bottom: 0;
    border-collapse: collapse;
    width: 100%;
}

#siskaperbapo-table-wrapper .table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 12px 8px;
    border: 1px solid #5568d3;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}

#siskaperbapo-table-wrapper .table thead th {
    border-bottom: 2px solid #5568d3;
}

#siskaperbapo-table-wrapper .table td {
    padding: 10px 8px;
    font-size: 0.8rem;
    vertical-align: middle;
    border: 1px solid #e9ecef;
}

#siskaperbapo-table-wrapper .table tbody tr:hover {
    background: #f0f4ff !important;
    transition: background 0.2s ease;
}

#siskaperbapo-table-wrapper .table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

#siskaperbapo-table-wrapper .table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

/* Styling khusus untuk kolom perubahan */
#siskaperbapo-table-wrapper .table td:last-child {
    white-space: nowrap;
    font-weight: 600;
}

/* Styling untuk kategori utama (yang tidak memiliki sub-item) */
#siskaperbapo-table-wrapper .table tbody tr td:nth-child(2) {
    font-weight: 500;
}

#siskaperbapo-table-wrapper .kemarin {
    font-weight: 600;
    color: #9b59b6;
}

#siskaperbapo-table-wrapper .sekarang {
    font-weight: 600;
    color: #3498db;
}

#siskaperbapo-table-wrapper .selisih {
    background-color: #e8daef;
}

#siskaperbapo-table-wrapper .glyphicon-chevron-up.red {
    color: #e74c3c;
}

#siskaperbapo-table-wrapper .glyphicon-chevron-down.green {
    color: #27ae60;
}

/* Styling untuk kolom perubahan persen */
#siskaperbapo-table-wrapper .red {
    color: #dc3545 !important;
    font-weight: 600;
}

#siskaperbapo-table-wrapper .green {
    color: #28a745 !important;
    font-weight: 600;
}

#siskaperbapo-table-wrapper .glyphicon {
    font-size: 0.75rem;
    margin-left: 3px;
}

/* Custom arrow icons jika glyphicon tidak tersedia */
#siskaperbapo-table-wrapper .glyphicon-chevron-up::before {
    content: "▲";
    font-family: Arial, sans-serif;
}

#siskaperbapo-table-wrapper .glyphicon-chevron-down::before {
    content: "▼";
    font-family: Arial, sans-serif;
}

#siskaperbapo-table-wrapper .price-tooltip-enabled {
    cursor: pointer;
    color: #2c3e50;
}

#siskaperbapo-table-wrapper .price-tooltip-enabled:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Responsive Table */
@media (max-width: 768px) {
    #siskaperbapo-table-wrapper {
        padding: 15px;
        overflow-x: auto;
    }

    #siskaperbapo-table-wrapper .table {
        font-size: 0.75rem;
    }

    #siskaperbapo-table-wrapper .table th,
    #siskaperbapo-table-wrapper .table td {
        padding: 8px 5px;
        font-size: 0.7rem;
    }

    #siskaperbapo-table-wrapper h3 {
        font-size: 0.95rem;
    }
}

/* Styling untuk tombol Kunjungi Siskaperbapo */
.btn-siskaperbapo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-siskaperbapo::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transition: all 0.4s ease;
    z-index: 0;
}

.btn-siskaperbapo:hover::before {
    left: 0;
}

.btn-siskaperbapo span,
.btn-siskaperbapo i {
    position: relative;
    z-index: 1;
}

.btn-siskaperbapo:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-siskaperbapo i {
    transition: transform 0.3s ease;
}

.btn-siskaperbapo:hover i {
    transform: translateX(5px);
}

/* Styling untuk tombol landing */
.btn-landing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* efek hover background */
.btn-landing::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0b5ed7 0%, #0d6efd 100%);
    transition: all 0.4s ease;
    z-index: 0;
}

.btn-landing:hover::before {
    left: 0;
}

.btn-landing span,
.btn-landing i {
    position: relative;
    z-index: 1;
}

.btn-landing:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(13, 110, 253, 0.5);
    color: white;
}

.btn-landing i {
    transition: transform 0.3s ease;
}

.btn-landing:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .btn-siskaperbapo {
        padding: 10px 22px;
        font-size: 0.85rem;
    }
}

/* Styling untuk Tabel S-DEGAN */
#sdegan-table-wrapper {
    margin-top: 40px;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

#sdegan-table-wrapper h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #f39c12;
}

#sdegan-table-wrapper .table {
    font-size: 0.85rem;
    margin-bottom: 0;
    border-collapse: collapse;
    width: 100%;
}

#sdegan-table-wrapper .table th {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 12px 8px;
    border: 1px solid #e67e22;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}

#sdegan-table-wrapper .table thead th {
    border-bottom: 2px solid #d68910;
}

#sdegan-table-wrapper .table td {
    padding: 10px 8px;
    font-size: 0.8rem;
    vertical-align: middle;
    border: 1px solid #e9ecef;
}

#sdegan-table-wrapper .table tbody tr:hover {
    background: #fff8f0 !important;
    transition: background 0.2s ease;
}

#sdegan-table-wrapper .table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

#sdegan-table-wrapper .table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

/* Badge Indikator */
#sdegan-table-wrapper .badge-aman {
    background: #27ae60;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

#sdegan-table-wrapper .badge-waspada {
    background: #f39c12;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

#sdegan-table-wrapper .badge-intervensi {
    background: #e74c3c;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Icon perubahan harga */
#sdegan-table-wrapper .price-up {
    color: #e74c3c;
    font-weight: 600;
}

#sdegan-table-wrapper .price-down {
    color: #27ae60;
    font-weight: 600;
}

#sdegan-table-wrapper .price-same {
    color: #95a5a6;
    font-weight: 600;
}

#sdegan-table-wrapper .price-icon {
    font-size: 0.75rem;
    margin-left: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    #sdegan-table-wrapper {
        padding: 15px;
        overflow-x: auto;
    }

    #sdegan-table-wrapper .table {
        font-size: 0.75rem;
    }

    #sdegan-table-wrapper .table th,
    #sdegan-table-wrapper .table td {
        padding: 8px 5px;
        font-size: 0.7rem;
    }

    #sdegan-table-wrapper h3 {
        font-size: 0.95rem;
    }

    #sdegan-table-wrapper .badge-aman,
    #sdegan-table-wrapper .badge-waspada,
    #sdegan-table-wrapper .badge-intervensi {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}

/* Styling untuk Section Berita */
.berita-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.berita-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.berita-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.berita-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.berita-card:hover .berita-img img {
    transform: scale(1.1);
}

.berita-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.berita-meta {
    margin-bottom: 12px;
}

.berita-date {
    color: #6c757d;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.berita-date i {
    color: #667eea;
}

.berita-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.berita-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.berita-title a:hover {
    color: #667eea;
}

.berita-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.berita-read-more {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.berita-read-more:hover {
    color: #764ba2;
    gap: 10px;
}

.berita-read-more i {
    transition: transform 0.3s ease;
}

.berita-read-more:hover i {
    transform: translateX(5px);
}

/* Tombol Lihat Semua Berita */
.btn-berita-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-berita-more::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transition: all 0.4s ease;
    z-index: 0;
}

.btn-berita-more:hover::before {
    left: 0;
}

.btn-berita-more span,
.btn-berita-more i {
    position: relative;
    z-index: 1;
}

.btn-berita-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-berita-more i {
    transition: transform 0.3s ease;
}

.btn-berita-more:hover i {
    transform: translateX(5px);
}

/* Responsive Berita */
@media (max-width: 768px) {
    .berita-img {
        height: 180px;
    }

    .berita-content {
        padding: 20px;
    }

    .berita-title {
        font-size: 1rem;
    }

    .btn-berita-more {
        padding: 10px 22px;
        font-size: 0.85rem;
    }
}
