/* CSS yang diberikan dipertahankan */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    touch-action: manipulation;
}

body {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    background-image: url('/src/image/background/background.webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100vw 100vh;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.514);
    z-index: -1;
}

/* Header dan Navbar */
.top-bar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1000px;
    background: linear-gradient(135deg, #FFF4C2, #e6b000, #a88100, #302500, #000000, #e6b000, #FFF4C2);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    border: 2px solid #ffc400;
    box-shadow: inset -1px -1px 3px rgb(0, 0, 0),
                inset 1px 1px 3px rgb(255, 255, 255),
                1px 1px 3px rgb(0, 0, 0);
}

.top-bar:hover {
    background: linear-gradient(135deg, #FFF4C2, #e6b000, #a88100, #ffecae, #ffffff, #e6b000, #FFF4C2);
}

.logo {
    width: 100px;
    height: 50px;
    border-radius: 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-container {
    flex-grow: 1;
    margin: 0 15px;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border-radius: 30px;
    border: 2px solid #ffd000;
    background: rgb(0, 0, 0);
    font-size: 20px;
    color: #ffffff;
    font-weight: bold;
    box-shadow: 0 0 10px rgb(255, 255, 255);
    transition: all 0.3s ease;
    box-shadow: inset -1px -1px 3px rgb(0, 0, 0),
            inset 1px 1px 3px rgb(255, 255, 255),
            1px 1px 3px rgb(0, 0, 0);
}

.search-container input:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(249, 224, 118, 0.5);
    box-shadow: inset -1px -1px 3px rgb(0, 0, 0),
            inset 1px 1px 3px rgb(255, 255, 255),
            1px 1px 3px rgb(0, 0, 0);
}

.search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 18px;
}

.hamburger-menu {
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: rgb(0, 0, 0);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #ffee00;
    transition: all 0.3s ease;
    box-shadow: inset -1px -1px 3px rgb(0, 0, 0),
            inset 1px 1px 3px rgb(255, 255, 255),
            1px 1px 3px rgb(0, 0, 0);
}

.hamburger-menu:hover {
    background: linear-gradient(135deg, #ffc2c2, #e60000, #300000, #e60000);
    transform: scale(1.05);
}

.hamburger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background: linear-gradient(to right, #FFF4C2, #e6b000, #302500, #e6b000);
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover span {
    background: linear-gradient(to right, #FFF4C2, #e6b000, #ffffff, #e6b000);
}

.banner-container {
    position: relative;
    margin-top: 75px;
    height: 500px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    touch-action: pan-y;
}

.banner-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.banner-slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-content {
    position: absolute;
    width: 100%;
    height: 200%;
    top: 0;
    left: 0;
    transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.banner-slide img {
    width: 100%;
    height: 50%;
    object-fit: cover;
    display: block;
}

.slide-arrow {
    position: absolute;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: inset -1px -1px 3px rgb(0, 0, 0),
            inset 1px 1px 3px rgb(255, 255, 255),
            1px 1px 3px rgb(0, 0, 0);
}

.arrow-left {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.arrow-right {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.arrow-up {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.arrow-down {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #ffffff;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 237, 155, 0.8);
}

.v-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.v-indicator.active {
    background: #ffffff;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 235, 148, 0.8);
}

.slide-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10;
}

footer {
    background: #000000;
    margin-top: 50px;
    text-align: center;
    color: #aaa;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        max-width: 1000px;
        margin: 0 auto;
        padding: 20px;
        background-color: #000;
        color: #fff;
        overflow-x: hidden;
        background-image: url('/src/image/background/background.webp');
        background-repeat: repeat;
        background-attachment: scroll;
        background-size: contain;
        flex-direction: column;
        position: relative;
    }

    .banner-container {
        height: 350px;
        margin-top: 75px;
    }
    
    .slide-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .slide-info {
        left: 10px;
        bottom: 10px;
        padding: 10px;
        max-width: 70%;
    }
    
    .slide-info h3 {
        font-size: 18px;
    }
    
    .slide-info p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .banner-container {
        height: 250px;
    }
    
    .slide-indicators {
        bottom: 10px;
        right: 10px;
        gap: 6px;
        padding: 6px 10px;
    }
    
    .slide-counter {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 12px;
    }
}

.bukti-header {
    text-align: center;
    margin-bottom: 10px;
}

.bukti-header h1 {
    font-size: 2.5rem;
    color: #ffd900;
    text-shadow: 2px 2px 2px #000;
    margin-bottom: 10px;
    margin-top: 10px;
    background: linear-gradient(135deg, #000, #222, #444, #222, #000);
    padding: 15px;
    border-radius: 15px;
    border: 2px solid #ffc400;
    box-shadow: inset -1px -1px 3px rgb(0, 0, 0),
            inset 1px 1px 3px rgb(255, 255, 255),
            1px 1px 3px rgb(0, 0, 0);
}


.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: linear-gradient(145deg, #ffc4c4, #ff5555, #ff0000, #9c0000, #4e0000, #000000, #a50000, #ff0000, #ff8d8d);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: all 1s ease;
    box-shadow: -3px 0 15px rgb(0, 0, 0);
    border-left: 3px solid #ffe600;
}

.menu-overlay.active {
    right: 0;
}

.menu-header {
    padding: 25px 20px;
    background: linear-gradient(135deg, #ffffff, #e6b000, #a88100, #4e3c00, #000000, #e6b000, #FFF4C2);
    border-bottom: 2px solid #ffe600;
    box-shadow: inset -1px -1px 3px rgb(0, 0, 0),
            inset 1px 1px 3px rgb(255, 255, 255),
            1px 1px 3px rgb(0, 0, 0);
    
}

.menu-header h2 {
    color: #ffffff;
    font-size: 1.8rem;
    text-align: center;
    text-shadow: 2px 2px 5px rgb(0, 0, 0);
}

.menu-content {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.menu-items {
    list-style: none;
}

.menu-items li {
    margin-bottom: 15px;
    position: relative;
}

.menu-items > li > a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ffffff, #e6b000, #a88100, #4e3c00, #000000, #e6b000, #FFF4C2);
    color: rgb(255, 255, 255);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: 1px solid rgb(255, 230, 0);
    box-shadow: inset -1px -1px 3px rgb(0, 0, 0),
            inset 1px 1px 3px rgb(255, 255, 255),
            1px 1px 3px rgb(0, 0, 0);

}

.menu-items > li > a:hover {
    background: linear-gradient(135deg, #ffffff, #d3d3d3, #7e7e7e, #424242, #000000, #b9b9b9, #ffffff);
    transform: translateX(-5px);
    border-color: #ffe600;
}

.menu-items i {
    margin-right: 15px;
    color: #ffffff;
    font-size: 1.4rem;
    width: 30px;
    text-align: center;
    
}

.close-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 25px;
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff, #d3d3d3, #7e7e7e, #424242, #000000, #e0e0e0, #ffffff);
    border-radius: 50%;
    border: 1px solid #ffee00;
    transition: all 0.3s ease;
    box-shadow: inset -1px -1px 1px rgb(0, 0, 0),
            inset 1px 1px 1.5px rgb(255, 255, 255),
            1px 1px 3px rgb(0, 0, 0);
}

.close-menu:hover {
    background: linear-gradient(145deg, #ffc4c4, #ff5555, #ff0000, #9c0000, #4e0000, #000000, #ff0000, #ffbbbb, #ffffff);
    transform: rotate(90deg);
}

/* Submenu Styles */
.submenu {
    list-style: none;
    padding-top: 8px;
    padding-left: 30px;
    padding-right: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 1s ease;
}

.submenu.active {
    max-height: 1000px;
}

.submenu li {
    margin-bottom: 8px;
}

.submenu a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ffffff, #d3d3d3, #7e7e7e, #424242, #000000, #b9b9b9, #ffffff);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.5s ease;
    font-size: 0.95rem;
    border: 1px solid rgb(255, 208, 0);
    box-shadow: inset -1px -1px 3px rgb(0, 0, 0),
                inset 1px 1px 3px rgb(255, 255, 255),
                1px 1px 3px rgb(0, 0, 0);
}

.submenu a:hover {
    background: linear-gradient(135deg, #ffc4c4, #ff5555, #ff0000, #9c0000, #4e0000, #000000, #a50000, #ff0000, #ff8d8d);
    transform: translateX(-20px);
    border: 1px solid rgb(255, 208, 0);
}

.submenu i {
    font-size: 1rem;
    width: 25px;
    margin-right: 10px;
}

.has-submenu > a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.has-submenu.active > a::after {
    transform: rotate(180deg);
}

/* Footer Styles */
.footer {
    position: relative;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1000px;
    background: #000000;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    border-radius: 10%;
    border: 2px solid #ffc400;
    box-shadow: inset -1px -1px 3px rgb(0, 0, 0),
                inset 1px 1px 3px rgb(255, 255, 255),
                1px 1px 3px rgb(0, 0, 0);
}

.footer-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffc400;
    box-shadow: 0 0 20px rgba(51, 36, 36, 0.5);
    box-shadow: inset -1px -1px 3px rgb(0, 0, 0),
            inset 1px 1px 3px rgb(255, 255, 255),
            0px 0px 10px rgb(255, 0, 0);
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgb(255, 0, 0);
    box-shadow: inset -1px -1px 3px rgb(0, 0, 0),
            inset 1px 1px 3px rgb(255, 255, 255),
}

.provider-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.provider-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(0.7);
    border: 2px solid #ffffff;
    box-shadow: inset -1px -1px 3px rgb(0, 0, 0),
            inset 1px 1px 3px rgb(255, 255, 255),
            1px 1px 3px rgb(0, 0, 0);
}

.provider-logo:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(212,175,55,0.5);
    border-color: #ffc400;
    box-shadow: inset -1px -1px 3px rgb(0, 0, 0),
            inset 1px 1px 3px rgb(255, 255, 255),
            0px 0px 3px rgb(255, 217, 0);
}

.provider-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-shadow: inset -1px -1px 3px rgb(0, 0, 0),
            inset 1px 1px 3px rgb(255, 255, 255),
            1px 1px 3px rgb(0, 0, 0);
}

.copyright {
    margin-top: 20px;
    color: #aaa;
    font-size: 0.9rem;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #262626;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
}

.loading-content img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.loading-text {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
    100% { content: '.'; }
}

/* Menu Scrollbar */
.menu-content::-webkit-scrollbar {
    width: 5px;
}

.menu-content::-webkit-scrollbar-track {
    background: #000;
}

.menu-content::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 10px;
}

/* Style tambahan untuk halaman buku mimpi */
.dream-book-container {
    max-width: 1500px;
    max-height: 2000px;
    padding: 15px;
}

.dream-filter {
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.dream-filter-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(180deg, #ffffff, #ffc400, #302500);
    color: #ffffff;
    text-shadow: 2px 2px 3px rgb(0, 0, 0);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset -1px -1px 3px rgb(0, 0, 0),
                inset 1px 1px 3px rgb(255, 255, 255),
                1px 1px 3px rgb(0, 0, 0);
}

.dream-filter-btn.active, .dream-filter-btn:hover {
    background: linear-gradient(180deg, #ffffff, #e60000, #470000);
    color: #ffffff;
    text-shadow: 2px 2px 3px rgb(0, 0, 0);
    transform: translateY(-3px);
}

.dream-table-container {
    max-height: 850px;
    overflow-y: auto;
    border: 2px solid #ffd900;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 217, 0, 0.5);
}

/* Scrollbar style */
.dream-table-container::-webkit-scrollbar {
    width: 12px;
}

.dream-table-container::-webkit-scrollbar-track {
    background: #000;
    border-radius: 10px;
}

.dream-table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff0000, #b30000, #660000);
    border-radius: 10px;
    border: 2px solid #ffd900;
}

.dream-table-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff4d4d, #ff0000, #990000);
}

.dream-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(29, 29, 29, 0.8);
}

.dream-table th {
    background: linear-gradient(180deg, #fff9a4, #ffc400, #302500);
    color: #000;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
    font-weight: bold;
    position: sticky;
    top: 0;
    padding: 15px;
    text-align: left;
    border-bottom: 3px solid #ffd900;
    box-shadow: inset -1px -1px 3px rgb(0, 0, 0),
            inset 1px 1px 3px rgb(255, 255, 255),
            1px 1px 3px rgb(0, 0, 0);
}

.dream-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ffc400;
}

.dream-table tr:nth-child(even) {
    background: rgba(30, 30, 30, 0.5);
}

.dream-table tr:hover {
    background: linear-gradient(to right, #ffcfcf, #ff0000, #720000);
    color: #ffffff;
    text-shadow: 2px 2px 1px #000;
    box-shadow: inset -1px -1px 3px rgb(0, 0, 0),
            inset 1px 1px 3px rgb(255, 255, 255),
            0px 0px 3px rgb(255, 255, 255);}

.dream-number {
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    color: #ffd900;
    width: 80px;
}

.no-results {
    text-align: center;
    padding: 30px;
    color: #aaa;
    font-style: italic;
}

.dream-count {
    text-align: right;
    padding: 10px 0;
    color: #ffd900;
    font-weight: bold;
}

/* Tambahan fix untuk responsif buku mimpi di mobile */
@media (max-width: 768px) {
  .dream-book-container {
    width: 100%;
    padding: 10px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .dream-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    margin: 0 auto;
  }

  .dream-table {
    min-width: 100%;
    font-size: 14px;
  }

  .dream-table th,
  .dream-table td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .dream-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .dream-filter-btn {
    font-size: 14px;
    padding: 10px 18px;
    flex: 1 1 auto;
  }

  .dream-count {
    font-size: 13px;
    padding: 8px;
  }
}
