/* Neon Theme Variables */
:root {
    --neon-blue: #00b7eb; /* Softer blue for neon effect */
    --dark-blue: #005b96; /* Darker blue for gradient */
    --dark-bg: #1a1a1a;
    --card-bg: #2a2a2a;
    --text-light: #d1d1d1; /* Light gray for readable text */
    --text-subtle: #a0e7ff; /* Subtle neon blue for secondary text */
}

/* General Styles */
html, body {
    height: 100%;
    margin: 0;
}
body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main {
    flex: 1;
    padding-top: 2rem; /* Add spacing between navbar and content */
}

/* Neon Text and Button */
.text-neon {
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-blue);
}
.btn-neon {
    background: linear-gradient(45deg, var(--neon-blue), var(--dark-blue));
    border: none;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 183, 235, 0.3);
    padding: 0.3rem 0.6rem; /* Reduced padding for smaller buttons */
    font-size: 0.9rem; /* Reduced font size */
    border-radius: 8px;
}
.btn-neon:hover {
    box-shadow: 0 4px 12px rgba(0, 183, 235, 0.5);
    transform: translateY(-2px);
}
.btn-outline-neon {
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    transition: all 0.3s ease;
    padding: 0.3rem 0.6rem; /* Reduced padding for smaller buttons */
    font-size: 0.9rem; /* Reduced font size */
    border-radius: 8px;
}
.btn-outline-neon:hover {
    background: var(--neon-blue);
    color: #fff;
    box-shadow: 0 0 10px var(--neon-blue);
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
.navbar-brand img {
    max-height: 60px;
    transition: all 0.3s ease;
}
.navbar-brand img:hover {
    filter: drop-shadow(0 0 10px var(--neon-blue));
}
.nav-link {
    color: var(--text-light);
}
.nav-link:hover {
    color: var(--neon-blue);
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 183, 235, 0.5);
}
.card-img-top {
    object-fit: contain; /* Changed from cover to contain to show full image */
    object-position: center;
    height: 200px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05); /* Subtle background for transparency */
}
.card-text {
    color: var(--text-light);
}
.text-subtle {
    color: var(--text-subtle) !important;
}

/* Carousel */
.carousel {
    margin-top: 80px; /* Add space to avoid navbar overlap */
}
.carousel-item .parallax {
    background-size: contain; /* Changed from cover to contain to show full image */
    background-position: center;
    background-repeat: no-repeat;
    height: 50vh; /* Reduced height to prevent navbar overlap */
    filter: brightness(0.7);
}
.carousel-caption {
    background: transparent;
    border-radius: 8px;
    color: var(--text-light);
    padding: 1rem 1.5rem; /* Reduced padding */
    max-width: 35%; /* Limit width */
    margin: 0 auto; /* Center the caption */
}
.carousel-caption h5 {
    font-size: 1.2rem; /* Smaller title */
    margin-bottom: 0.5rem;
}
.carousel-caption p {
    font-size: 0.9rem; /* Smaller description text */
    margin-bottom: 0;
    line-height: 1.4;
}
/* Carousel Navigation Buttons - Moved closer to center */
.carousel-control-prev,
.carousel-control-next {
    width: 6%; /* Reduced from 8% to make buttons smaller */
    z-index: 10;
}
.carousel-control-prev {
    left: 15%; /* Moved closer to center from 5% */
}
.carousel-control-next {
    right: 15%; /* Moved closer to center from 5% */
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: transparent;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 183, 235, 0.5);
    transition: all 0.3s ease;
}
.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    box-shadow: 0 0 15px rgba(0, 183, 235, 0.8);
    transform: scale(1.1);
}

/* Forms */
.form-control.bg-dark {
    background-color: var(--card-bg);
    border-color: var(--neon-blue);
    color: var(--text-light);
}
.form-control.bg-dark::placeholder {
    color: var(--text-subtle);
}
.form-select.bg-dark {
    background-color: var(--card-bg);
    border-color: var(--neon-blue);
    color: var(--text-light);
}

/* Filter Card */
.filter-card {
    background-color: var(--card-bg);
    border: 2px solid var(--neon-blue);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 183, 235, 0.3);
}
.filter-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.filter-card .form-label {
    font-size: 0.9rem;
    color: var(--text-light);
}
.filter-card .form-select, .filter-card .btn-neon {
    font-size: 0.85rem;
    padding: 0.5rem;
}
.filter-card .form-select {
    border-radius: 8px;
    transition: all 0.3s ease;
}
.filter-card .form-select:hover {
    box-shadow: 0 0 8px rgba(0, 183, 235, 0.5);
}
.filter-card .btn-neon {
    border-radius: 8px;
    padding: 0.3rem 0.6rem; /* Reduced padding for smaller buttons */
    font-size: 0.9rem; /* Reduced font size */
}

/* Modals */
.modal-content {
    background-color: var(--card-bg);
    border: 2px solid var(--neon-blue);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 183, 235, 0.5);
}
.modal-header {
    border-bottom: 1px solid var(--neon-blue);
}
.modal-title {
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
}
.btn-close-white {
    filter: invert(1);
}
.modal-body {
    padding: 1.5rem;
}
.modal-body .alert {
    margin-bottom: 1rem;
}

/* Responsive Modal Adjustments */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    .modal-content {
        padding: 1rem;
    }
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    padding: 1rem 0;
    border-top: 1px solid var(--neon-blue);
    box-shadow: 0 -2px 5px rgba(0, 183, 235, 0.2);
    margin-top: 3rem; /* Added margin for spacing from content */
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 0.75rem;
}
.footer-logo img {
    max-height: 80px;
    transition: all 0.3s ease;
}
.footer-logo img:hover {
    filter: drop-shadow(0 0 10px var(--neon-blue));
}
.footer-links, .footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.footer-links a, .footer-social a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.footer-links a:hover, .footer-social a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
}
.footer-social i {
    font-size: 1.1rem;
    margin-right: 0.3rem;
}
.footer-bottom {
    text-align: center;
    margin-top: 0.5rem;
    padding-top: 0.3rem;
    border-top: 1px solid var(--neon-blue);
    color: var(--text-subtle);
    font-size: 0.75rem;
}

/* Responsive Footer Adjustments */
@media (max-width: 768px) {
    footer {
        padding: 0.5rem 0; /* Reduced from 1rem */
        margin-top: 2rem; /* Smaller margin on mobile */
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 0.2rem;
        gap: 0.3rem; /* Reduced gap */
    }
    .footer-logo img {
        max-height: 20px; /* Smaller logo */
    }
    .footer-links, .footer-social {
        align-items: center;
        margin: 0.2rem 0; /* Reduced margin */
        gap: 0.2rem; /* Smaller gap between links */
    }
    .footer-links a, .footer-social a {
        font-size: 0.75rem; /* Smaller text */
    }
    .footer-social i {
        font-size: 1rem; /* Smaller icons */
        margin-right: 0.2rem; /* Less space after icons */
    }
    .footer-bottom {
        margin-top: 0.2rem;
        padding-top: 0.15rem;
        font-size: 0.7rem; /* Even smaller copyright text */
    }
    /* Mobile adjustments for carousel buttons */
    .carousel-control-prev {
        left: 10%; /* Slightly closer to center on mobile */
    }
    .carousel-control-next {
        right: 10%; /* Slightly closer to center on mobile */
    }
}

/* Sticky Filters */
.sticky-top {
    top: 80px;
}

/* Alerts */
.alert {
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 183, 235, 0.3);
    color: #1f2021;
}

/* Payment and Status Styles */
.payment-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transition: transform 0.3s;
}
.payment-card:hover {
    transform: translateY(-5px);
}
.qris-image {
    border: 2px solid var(--neon-blue);
    border-radius: 10px;
    max-width: 250px;
    transition: box-shadow 0.3s;
}
.qris-image:hover {
    box-shadow: 0 0 15px var(--neon-blue);
}
.order-summary {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}
.total-payment {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
}
.status-indicator {
    display: flex;
    flex-direction: row; /* Ensure side-by-side */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    margin-top: 15px;
}
.status-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px; /* Space between dot and text */
    animation: blink 1.5s infinite;
}
.status-text {
    color: var(--text-light);
    font-weight: bold;
    white-space: nowrap; /* Prevent text wrapping */
}
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}
.status-pending .status-dot {
    background-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}
.status-processed .status-dot {
    background-color: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}
.status-declined .status-dot {
    background-color: #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}
.status-pending .status-text {
    color: #00d4ff;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}
.status-processed .status-text {
    color: #28a745;
    text-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
}
.status-declined .status-text {
    color: #dc3545;
    text-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
}

/* Responsive Adjustments for Mobile */
@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 50px;
    }
    .nav-link {
        font-size: 0.9rem;
    }
    .card-img-top {
        height: 250px;
    }
    .filter-card {
        padding: 1rem;
    }
    .payment-card, .order-summary {
        padding: 15px;
    }
    .qris-image {
        max-width: 200px;
    }
    .btn-neon, .btn-outline-neon {
        padding: 0.3rem 0.6rem; /* Reduced padding for smaller buttons */
        font-size: 0.9rem; /* Reduced font size */
    }
    .table-responsive {
        overflow-x: auto;
    }
    /* Mobile adjustments for status indicator */
    .status-dot {
        width: 16px;
        height: 16px;
    }
    .status-text {
        font-size: 0.9rem;
    }
    /* Stack title and button vertically on mobile */
    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        gap: 1rem;
    }
    .d-flex.justify-content-between.align-items-center button {
        width: 100%;
    }
}