/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

:root {
    --cnvs-themecolor: #C10941;
    --cnvs-themecolor-rgb: 193, 9, 65;
    --bs-danger: #C10941;
    --bs-danger-rgb: 193, 9, 65;
    --bs-red: #C10941;
    --bs-red-rgb: 193, 9, 65;
}

[class*=entry-] {
    --cnvs-post-sm-image: 150px;
}

#footer {
    background-color: #C10941 !important;
    border-top: var(--cnvs-footer-top-border);
}


.canvas-tabs .nav-link.active,
.canvas-tabs .nav-tabs .nav-item.show .nav-link,
.canvas-tabs.nav-tabs .nav-link.active,
.canvas-tabs.nav-tabs .nav-tabs .nav-item.show .nav-link {
    background-color: #C10941 !important;
    color: #FFF !important;
}

.link-dark:hover,
.link-dark:focus {
    color: #C10941 !important;
}

a.hover-underline {
    text-decoration: none !important;
}

a.hover-underline:hover {
    text-decoration: underline !important;
}

.toolbar-disabilitas {
    position: fixed !important;
    bottom: 10px !important;
    left: 10px;
    z-index: 999;
    width: -180px;
}

body.all-grayscale {
    -webkit-filter: grayscale(100%) !important;
    filter: grayscale(100%) !important;
}

body.negatif-contrast {
    -webkit-filter: invert(100%);
    filter: invert(100%);
    color: #fff;
}

body.high-contrast {
    background-color: #000;
    background-image: none;
    color: #fff;
}

body.light-background {
    background-color: #fff !important;
    background-image: none !important;
    color: #000 !important;
}

body.link-highlights a {
    text-decoration: underline !important;
}

body.readable-font {
    letter-spacing: 1px;
}


.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#close-accessibility {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    transition: 0.2s;
}

#close-accessibility:hover {
    color: #000;
    transform: scale(1.2);
}


/* Floating Button */
#accessibility-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: #0057ff;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

#accessibility-btn:hover {
    transform: scale(1.1);
}

/* Sidebar Panel */
#accessibility-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    transition: 0.3s ease;
    overflow-y: auto;
    z-index: 9999;
}

#accessibility-panel.open {
    right: 0;
}

#accessibility-panel h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
}

/* Item */
.acc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 15px;
}

.acc-item:hover {
    background: #f0f4ff;
}

/* Scrollbar */
#accessibility-panel::-webkit-scrollbar {
    width: 6px;
}

#accessibility-panel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* Warna abu-abu */
#wrapper.grayscale {
    filter: grayscale(100%);
}

/* Kontras tinggi */
#wrapper.high-contrast {
    filter: contrast(180%) brightness(120%);
}

/* Kontras negatif */
#wrapper.negative-contrast {
    filter: invert(100%) contrast(150%);
}

/* Latar belakang terang */
#wrapper.light-bg {
    background: white !important;
    color: black !important;
}

/* Garis bawah tautan */
#wrapper.underline-links a {
    text-decoration: underline !important;
}

/* Font mudah dibaca */
#wrapper.readable-font {
    font-family: Arial, Helvetica, sans-serif !important;
}


/* Popup container */
.privacy-popup {
    position: fixed;
    bottom: -200px;
    /* hidden initially */
    left: 0;
    right: 0;
    background: #1e1e1e;
    color: #fff;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    transition: bottom 0.4s ease;
    font-size: 15px;
}

/* When visible */
.privacy-popup.show {
    bottom: 0;
}

/* Inner layout */
.privacy-inner {
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

/* Text */
.privacy-text p {
    margin: 6px 0 0 0;
    line-height: 1.5;
}

/* Buttons */
.privacy-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.privacy-link {
    color: #90caf9;
    text-decoration: underline;
    font-size: 14px;
}

.privacy-btn {
    background: #4caf50;
    border: none;
    padding: 10px 18px;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.privacy-btn:hover {
    background: #43a047;
}

/* Responsive */
@media (max-width: 600px) {
    .privacy-inner {
        flex-direction: column;
        text-align: center;
    }
}
