/* Dark Green + Gold Theme with Animations and Gradients */

:root {
    --dark-green: #004d00;
    --darker-green: #003300;
    --gold: #FFD700;
    --gold-hover: #FFC000;
    --gold-light: rgba(255, 215, 0, 0.2);
    --text-light: #f8f9fa;
    --text-dark: #343a40;
    --gradient-dark: linear-gradient(135deg, var(--darker-green) 0%, var(--dark-green) 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --shadow-gold: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Base Styles */
body {
    background-color: var(--darker-green);
    color: var(--text-light);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffd700' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Navbar Styling */
.navbar-dark {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Ctext x='10' y='30' font-family='Arial' font-size='24' fill='%23ffd700' fill-opacity='0.07'%3E%E2%99%A0%3C/text%3E%3Ctext x='50' y='30' font-family='Arial' font-size='24' fill='%23ffd700' fill-opacity='0.07'%3E%E2%99%A5%3C/text%3E%3Ctext x='10' y='70' font-family='Arial' font-size='24' fill='%23ffd700' fill-opacity='0.07'%3E%E2%99%A3%3C/text%3E%3Ctext x='50' y='70' font-family='Arial' font-size='24' fill='%23ffd700' fill-opacity='0.07'%3E%E2%99%A6%3C/text%3E%3C/g%3E%3C/svg%3E"), var(--gradient-dark) !important;
    background-blend-mode: overlay;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar-brand img {
    filter: drop-shadow(0 0 5px var(--gold-light));
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px var(--gold));
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--gold);
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--gold);
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover:after {
    width: 100%;
    left: 0;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: var(--gold);
    text-shadow: 0 0 5px var(--gold-light);
}

/* Card Styling */
.card {
    background: var(--gradient-dark);
    border: 1px solid var(--gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.card-header {
    background: var(--gradient-gold) !important;
    color: var(--text-dark) !important;
    font-weight: bold;
    border-bottom: 2px solid var(--gold);
}

.prediksi-card {
    border: 2px solid var(--gold) !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.prediksi-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--shadow-gold) !important;
}

.prediksi-card .card-header {
    background: var(--gradient-gold) !important;
    color: var(--text-dark) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prediksi-card .card-img-top {
    transition: all 0.5s ease;
    filter: brightness(0.9);
}

.prediksi-card:hover .card-img-top {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Button Styling */
.btn-primary, .btn-dark {
    background: var(--gradient-gold) !important;
    border-color: var(--gold) !important;
    color: var(--text-dark) !important;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary::after, .btn-dark::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after, .btn-dark:hover::after {
    left: 100%;
}

.btn-primary:hover, .btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 0 0 5px var(--shadow-gold);
    background: var(--gold-hover) !important;
}

.btn-primary:active, .btn-dark:active {
    transform: translateY(1px);
}

.btn-warning {
    background-color: #FFA500 !important;
    border-color: #FF8C00 !important;
}

.btn-danger {
    background-color: #DC3545 !important;
    border-color: #C82333 !important;
}

/* Table Styling */
.table-dark, .table-striped thead {
    background: var(--gradient-dark) !important;
    color: var(--gold) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 215, 0, 0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

/* Admin Sidebar */
.admin-sidebar {
    background: var(--gradient-dark) !important;
    border-right: 1px solid var(--gold);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.admin-sidebar .nav-link {
    color: var(--gold) !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
}

.admin-sidebar .nav-link.active {
    background: var(--gradient-gold) !important;
    color: var(--text-dark) !important;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Form Controls */
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--gold);
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
    background-color: white;
}

/* Luxury Number Animation */
.luxury-number {
    font-size: 3.5rem !important;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(45deg, #FFD700, #FDB931, #FFD700, #FDB931, #FFD700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    animation: shine 2s linear infinite;
    letter-spacing: 4px;
    margin: 15px 0;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
    font-family: 'Arial Black', sans-serif;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Angka Prediksi Legacy (Keep for compatibility if needed) */
.angka-main {
    font-size: 2.5rem !important;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
    color: var(--gold) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: pulse 2s infinite;
}

/* Prediksi Table */
.prediksi-table {
    border: 2px solid var(--gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Tabel hitam untuk popup modal */
.black-table {
    background-color: #000;
    color: var(--gold);
}

.black-table tr:nth-child(even) {
    background-color: #222;
}

.black-table tr:hover {
    background-color: #333;
}

.black-table th, .black-table td {
    color: var(--gold);
}

.prediksi-table th {
    background: var(--gradient-gold) !important;
    color: var(--text-dark) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prediksi-table td {
    color: var(--gold);
    font-weight: bold;
    font-size: 1.1em;
}

/* Footer */
footer {
    background: var(--gradient-dark) !important;
    border-top: 2px solid var(--gold);
    color: var(--gold) !important;
}

/* Modal Styling */
.modal-content {
    background: var(--gradient-dark);
    border: 2px solid var(--gold);
}

.modal-header {
    background: var(--gradient-gold) !important;
    color: var(--text-dark) !important;
    border-bottom: 2px solid var(--gold);
}

.modal-footer {
    border-top: 1px solid var(--gold);
}

/* Chat AI Widget */
.chat-widget-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #fff;
}

.chat-widget-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.chat-widget-btn i {
    font-size: 30px;
    color: #000;
}

.chat-box {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: var(--gradient-dark);
    border: 2px solid var(--gold);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    z-index: 9998;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.chat-box.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.chat-header {
    background: var(--gradient-gold);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--gold);
}

.chat-header h5 {
    margin: 0;
    color: #000;
    font-weight: bold;
    font-size: 1.1rem;
}

.chat-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #000;
    transition: transform 0.2s;
}

.chat-close:hover {
    transform: rotate(90deg);
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
    clear: both;
}

.message.user {
    float: right;
    background: var(--gold);
    color: #000;
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    font-weight: 500;
}

.message.ai {
    float: left;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    border: 1px solid var(--gold);
}

.chat-input-area {
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--gold);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--gold);
    color: #fff;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-send {
    background: var(--gradient-gold);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-send:hover {
    transform: scale(1.1);
}

.typing-indicator {
    font-size: 0.8rem;
    color: var(--gold);
    margin-bottom: 10px;
    font-style: italic;
    display: none;
}
@keyframes pulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
}

/* Shio Icons */
.shio-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-right: 10px;
}

/* Running Text Styles */
.running-text-container {
    background: #000;
    border-bottom: 2px solid var(--gold);
    padding: 15px 0;
    margin-top: 110px; /* Default margin, will be adjusted by JS */
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 1020;
}

.running-text-wrapper {
    display: flex;
    width: max-content;
    animation: marquee-seamless 40s linear infinite;
}

.running-text-content {
    flex-shrink: 0;
    padding-right: 50px;
    display: flex;
    align-items: center;
}

.luxury-text {
    font-family: 'Arial Black', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(45deg, #FFD700, #FDB931, #FFD700, #FDB931, #FFD700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    letter-spacing: 2px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
    animation: shine 3s linear infinite;
}

@keyframes marquee-seamless {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
