
:root {
    --background-color: #0a0a0f;
    --surface-color: #121218;
    --primary-text-color: #e0e0e0;
    --secondary-text-color: #b0b0b0;
    --gold-accent: #c9a94e;
    --gold-dim: #9e843b;
    --font-heading: 'Cinzel Decorative', serif;
    --font-body: 'Poppins', sans-serif;
    --font-ui: 'Open Sans', sans-serif; /* For smaller text, UI elements */
    --danger-color: #e53935;
    --success-color: #43a047;
}

/* General styling */
body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--primary-text-color);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--gold-accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

button, .btn {
    font-family: var(--font-ui);
    background-color: var(--gold-accent);
    color: var(--background-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

button:hover, .btn:hover {
    background-color: #d8b85b;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--gold-accent);
    color: var(--gold-accent);
}

.btn-outline:hover {
    background-color: rgba(var(--gold-accent), 0.1);
}

.btn-ghost {
    background-color: transparent;
    color: var(--primary-text-color);
    border: 1px solid transparent;
}
.btn-ghost:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Header (used in admin.html, for consistency) */
.main-header {
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.main-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.main-header .logo {
    height: 40px; /* Smaller logo for general header */
    cursor: pointer;
}

.main-nav a {
    margin-left: 1.5rem;
    color: var(--secondary-text-color);
    font-weight: 500;
}
.main-nav a.active, .main-nav a:hover {
    color: var(--gold-accent);
}

.header-actions .logout-btn {
    background-color: var(--surface-color);
    color: var(--primary-text-color);
    padding: 0.5rem 1rem;
    border: 1px solid #444;
}
.header-actions .logout-btn:hover {
    background-color: #333;
}


/* Hero Section (Landing Page) */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6) blur(2px); /* Darken and blur background image */
}

.hero-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    height: 100%; /* Ensure content takes full height for centering */
    box-sizing: border-box;
    padding-top: 60px; /* Jeda aman dari top bar */
    padding-bottom: 60px; /* Jeda aman dari footer */
}

/* Logo di Hero */
.hero-app-logo {
  margin-bottom: 24px;
  text-align: center;
}

.motjo-responsive-logo {
    width: 50vw; /* 50% of viewport width for mobile */
    max-width: 280px; /* Cap at the original 280px */
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
}

@media (min-width: 768px) {
    .motjo-responsive-logo {
        width: 25vw; /* 25% of viewport width for desktop */
        max-width: 350px; /* Allow it to be a bit larger on desktop */
    }
}

/* Cover Slideshow Styling */
.hero-cover-slideshow {
    position: relative;
    width: 220px; /* Base width */
    aspect-ratio: 2 / 3; /* Standard book cover ratio */
    margin-bottom: 6px;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.7),
        0 0 35px rgba(var(--gold-rgb), 0.3),
        0 0 70px rgba(var(--gold-rgb), 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.5s ease;
    z-index: 5;
    transform: translateY(-20px); /* Slightly lift it */
}

@media (min-width: 500px) {
    .hero-cover-slideshow { width: 260px; }
}
@media (min-width: 900px) {
    .hero-cover-slideshow { width: 300px; }
}

.hero-cover-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* 1 second for crossfade */
    z-index: 2; /* Ensures active slide is on top */
    display: flex; /* To position running text */
    flex-direction: column;
    justify-content: flex-end; /* Push running text to bottom */
}

.hero-cover-slideshow .slide.active {
    opacity: 1;
    z-index: 3; /* Active slide on top */
}

.hero-cover-slideshow .slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area */
    z-index: 1; /* Image below running text */
}

.cover-running-text {
    position: relative; /* Relative to its slide parent */
    z-index: 5; /* Above the image */
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    padding: 12px 14px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    margin-top: auto; /* Push to bottom of slide flex container */
}

.cover-running-text .running-text-content {
    display: inline-block;
    padding-left: 100%; /* Start off-screen */
    animation: marquee 72s linear infinite;
    font-family: var(--font-ui);
    font-size: 1.00rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Hero Actions (buttons below cover) */
.hero-actions {
    position: relative;
    z-index: 5;
    margin-top: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
}

.hero-actions .btn {
    min-width: 180px; /* Maintain minimum button width */
}

.hero-actions .wa-btn {
    background: #25d366; /* WhatsApp green */
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; /* Fixed width for icon button */
    height: 48px;
    padding: 0;
    border-radius: 50%; /* Circular button */
    font-size: 1.3rem;
    flex-shrink: 0;
}

.hero-actions .wa-btn:hover {
    background: #1da851;
}

/* Hero Footer Copyright */
.hero-footer-copyright {
    position: absolute;
    bottom: 1rem;
    width: 100%;
    text-align: center;
    z-index: 5;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-ui);
    font-size: 0.8rem;
}

.hero-footer-copyright a {
    color: inherit;
    text-decoration: underline;
}

/* Modal Specific Styles (from index.html, moved here) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Darker overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 10px;
    max-width: 90%;
    width: 380px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--secondary-text-color);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
}
.modal-close:hover {
    color: var(--gold-accent);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold-accent);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    color: var(--primary-text-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background-color: #1a1a1a;
    border: 1px solid #444;
    color: var(--primary-text-color);
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
}

.form-error {
    color: var(--danger-color);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
}

/* Modal styling overrides for text content */
.modal-body-scrollable {
    max-height: 250px;
    overflow-y: auto;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--secondary-text-color);
    line-height: 1.6;
    padding-right: 8px;
    margin-top: 16px;
}
.modal-body-scrollable p {
    margin-bottom: 12px;
}

/* Notification Container */
#notification-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.notification {
    background-color: var(--surface-color);
    color: var(--primary-text-color);
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.notification.show {
    opacity: 1;
}


/* Admin Modal Specific Styles (from admin.js, for 2FA modal) */
.modal-content { /* Renamed from .modal for clarity, and added to generic .modal-overlay */
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #333;
    max-width: 90%;
    width: 380px;
}

.modal-content h3 {
    color: var(--gold-accent);
    margin-top: 0;
}

.modal-content input {
    display: block;
    width: 80%;
    margin: 1rem auto;
    padding: 0.8rem;
    background-color: var(--background-color);
    border: 1px solid #444;
    color: var(--primary-text-color);
    border-radius: 5px;
    text-align: center;
    font-size: 1.2rem;
}

.modal-content button {
    background-color: var(--gold-accent);
    color: var(--background-color);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin: 0.5rem;
}

#2fa-cancel-btn {
    background-color: #555;
    color: #fff;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .main-header .header-content {
        flex-direction: column;
        text-align: center;
    }
    .main-header .logo {
        margin-bottom: 0.5rem;
    }
    .main-nav a {
        margin: 0 0.5rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    .hero-actions .btn {
        min-width: unset;
        width: 100%;
    }
}
