/* CSS Variables - Blue Theme */
:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --secondary-blue: #60a5fa;
    --light-blue: #dbeafe;
    --very-light-blue: #eff6ff;
    --dark-blue: #1e3a8a;
    --navy-blue: #1e293b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* Performance Critical CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Optimize font rendering and performance */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--gray-50);
    overflow-x: hidden;
}

/* Hardware acceleration for key elements */
.floating-header,
.navbar,
.hero-image img,
img {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* Reduce layout shift */
img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--gray-50);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Floating Header */
.floating-header {
    position: fixed;
    top: 15px; /* Slightly lower */
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 0.8rem 2rem; /* Slightly smaller padding */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.6s ease-out;
}

.floating-header .main-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.floating-header .subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 70px; /* Adjusted positioning */
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000; /* Increased z-index */
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    gap: 0.5rem;
}

.nav-brand i {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: var(--transition);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--dark-blue));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-primary.large, .btn-secondary.large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* Hero Section */
.hero {
    position: relative;
    margin-top: 140px;
    min-height: 70vh;
    background: linear-gradient(135deg, var(--very-light-blue), var(--light-blue));
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 2;
}

.hero-text h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

.borobudur-bg {
    position: absolute;
    right: -3%;
    top: 5%;
    width: 800px;
    height: 600px;
    background-image: url('../images/borobudur-bg.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

/* Categories Section */
.categories {
    padding: 4rem 0;
    background: var(--white);
    margin-top: 20px; /* Add small margin after hero */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--navy-blue);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Fallback untuk browser lama */
@supports not (display: grid) {
    .category-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .category-card {
        flex: 0 1 calc(33.333% - 2rem);
        margin: 1rem;
    }
}

/* Responsive grid untuk 6 kategori */
@media (min-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Pastikan semua kategori terlihat */
.category-card[data-category="lainnya"] {
    border: 2px solid var(--primary-blue);
    background: linear-gradient(135deg, var(--very-light-blue), var(--white));
}

.category-card[data-category="lainnya"] .category-icon {
    color: var(--primary-blue);
}

.category-card[data-category="lainnya"] .item-count {
    background: var(--primary-blue);
    color: var(--white);
}

.category-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.category-card:hover::before {
    left: 100%;
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.category-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.category-image img {
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.category-card:hover .category-image img {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.item-count {
    display: inline-block;
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Search & Filter */
.search-filter {
    padding: 2rem 0;
    background: var(--gray-100);
    margin-top: 160px; /* Add margin to avoid floating header overlap */
}

.search-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-group {
    position: relative;
    flex: 1;
    min-width: 300px;
    z-index: 90; /* Ensure it's below navbar but above content */
}

.search-input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-input-group input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
}

.search-input-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-bar select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-family: inherit;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.search-bar select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* Ads Section */
.ads-section {
    padding: 4rem 0;
    background: var(--white);
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.ad-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--gray-200);
}

.ad-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.ad-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.ad-card:hover .ad-image img {
    transform: scale(1.05);
}

.ad-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.ad-content {
    padding: 1.5rem;
}

.ad-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.ad-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.ad-description {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-light);
    border-top: 1px solid var(--gray-200);
    padding-top: 1rem;
}

.ad-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ad-date {
    color: var(--text-light);
}

.load-more {
    text-align: center;
    margin-top: 3rem;
}

/* Category Page */
.category-page {
    padding: 2rem 0;
    background: var(--white);
    margin-top: 180px; /* Increase margin to avoid header overlap */
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-top: 1rem; /* Add padding to avoid header overlap */
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-200);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-back:hover {
    background: var(--gray-300);
}

.category-filters {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem; /* Add padding to separate from header */
}

/* Post Ad Form */
.post-ad-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
}

.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.form-header h2 {
    color: var(--navy-blue);
    font-size: 2rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.btn-close:hover {
    color: var(--text-dark);
}

.post-ad-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--navy-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.media-upload {
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}

.upload-area input[type="file"] {
    display: none;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.upload-label:hover {
    color: var(--primary-blue);
}

.upload-label i {
    font-size: 2rem;
}

.youtube-link {
    margin-top: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: var(--very-light-blue);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--navy-blue);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--navy-blue);
    font-weight: 500;
}

.feature-item i {
    color: var(--primary-blue);
    font-size: 1.25rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-light);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--navy-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-blue);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002; /* Above everything */
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content.large {
    max-width: 800px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    color: var(--navy-blue);
    font-size: 1.5rem;
}

.close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close:hover {
    color: var(--text-dark);
}

.modal-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.modal-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Ad Detail Modal */
.ad-detail-content {
    display: grid;
    gap: 2rem;
}

.ad-detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.ad-detail-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.ad-detail-info h3 {
    color: var(--navy-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.ad-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.ad-detail-description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.ad-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
}

.meta-item i {
    color: var(--primary-blue);
}

.whatsapp-btn {
    background: #25d366;
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1003; /* Above modals */
    opacity: 0;
    transform: translateX(100%);
    transition: var(--transition);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary-blue);
}

.notification.success .notification-content {
    border-left-color: var(--success);
}

.notification.error .notification-content {
    border-left-color: var(--error);
}

.notification.warning .notification-content {
    border-left-color: var(--warning);
}

.notification-icon {
    font-size: 1.25rem;
    color: var(--primary-blue);
}

.notification.success .notification-icon {
    color: var(--success);
}

.notification.error .notification-icon {
    color: var(--error);
}

.notification.warning .notification-icon {
    color: var(--warning);
}

/* Ensure dropdowns and form elements are not covered by fixed headers */
.search-bar select,
.category-filters select,
.form-group select {
    position: relative;
    z-index: 100; /* Lower than navbar but higher than other content */
}

/* Specific adjustments for category page elements */
.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-top: 1rem; /* Add padding to avoid header overlap */
}

/* Ensure search input group is properly positioned */
.search-input-group {
    position: relative;
    flex: 1;
    min-width: 300px;
    z-index: 90; /* Ensure it's below navbar but above content */
}

/* Adjust navbar position to be more stable */
.navbar {
    position: fixed;
    top: 90px; /* Slightly lower to give more room */
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 999;
    transition: var(--transition);
}

/* Floating header adjustments */
.floating-header {
    position: fixed;
    top: 15px; /* Slightly lower */
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 0.8rem 2rem; /* Slightly smaller padding */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.6s ease-out;
}

/* Adjust main content sections to account for fixed headers */
section:not(.hero) {
    scroll-margin-top: 180px; /* For smooth scrolling with fixed headers */
}

/* Specific z-index management for overlapping elements */
.modal {
    z-index: 1002; /* Above everything */
}

.post-ad-section {
    z-index: 1001; /* Above navbar but below modals */
}

.notification {
    z-index: 1003; /* Above modals */
}

/* Admin Panel Styles */
.admin-dashboard {
    min-height: 400px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-stats .stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-blue);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

.stat-info p {
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}

.recent-activity h4 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

.activity-list {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 35px;
    height: 35px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
}

.activity-content p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.activity-content small {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Tables */
.ads-table,
.users-table {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.ads-table table,
.users-table table {
    width: 100%;
    border-collapse: collapse;
}

.ads-table th,
.users-table th {
    background: var(--gray-100);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--navy-blue);
    border-bottom: 1px solid var(--gray-200);
}

.ads-table td,
.users-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

.ads-table tr:hover,
.users-table tr:hover {
    background: var(--gray-50);
}

.ad-title-cell strong {
    display: block;
    color: var(--navy-blue);
    margin-bottom: 0.25rem;
}

.ad-title-cell small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.active {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.rejected {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge.suspended {
    background: #f3f4f6;
    color: #6b7280;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-sm.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-sm.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-sm.btn-warning {
    background: var(--warning);
    color: var(--white);
}

.btn-sm.btn-danger {
    background: var(--error);
    color: var(--white);
}

.btn-sm:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.management-header h4 {
    color: var(--navy-blue);
    margin: 0;
}

.management-filters select,
.management-stats {
    padding: 0.5rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    background: var(--white);
}

.management-stats {
    color: var(--text-light);
    font-weight: 500;
}

/* Statistics */
.statistics {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stats-section h4 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

.stats-chart {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.chart-item {
    margin-bottom: 1rem;
}

.chart-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.chart-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-300);
    border-radius: 4px;
    overflow: hidden;
}

.chart-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 4px;
    transition: var(--transition);
}

.stats-summary h4 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-blue);
}

.summary-item span {
    color: var(--text-light);
}

.summary-item strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.admin-login {
    text-align: center;
    padding: 2rem;
}

.admin-login h3 {
    color: var(--navy-blue);
    margin-bottom: 2rem;
}

.admin-note {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-blue);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-blue);
}

.admin-note small {
    color: var(--primary-blue);
    font-weight: 500;
}

/* No ads message */
.no-ads {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.no-ads h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Additional styles for image count and video badge */
.image-count,
.video-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.video-badge {
    background: #ff0000;
}

/* User menu styles */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Upload preview styles */
.upload-preview {
    margin-top: 1rem;
}

/* Video container for YouTube embeds */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

.youtube-video {
    margin-bottom: 2rem;
}

.youtube-video h4 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .floating-qris {
        bottom: 70px;
        right: 10px;
        max-width: 160px;
    }
    
    .qris-image {
        width: 90px;
        height: 90px;
    }
    
    .qris-text {
        font-size: 11px;
    }
    
    .qris-subtitle {
        font-size: 9px;
    }
}

/* Admin Panel Styles */
.admin-dashboard {
    min-height: 400px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-stats .stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-blue);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

.stat-info p {
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}

.recent-activity h4 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

.activity-list {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 35px;
    height: 35px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
}

.activity-content p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.activity-content small {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Tables */
.ads-table,
.users-table {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.ads-table table,
.users-table table {
    width: 100%;
    border-collapse: collapse;
}

.ads-table th,
.users-table th {
    background: var(--gray-100);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--navy-blue);
    border-bottom: 1px solid var(--gray-200);
}

.ads-table td,
.users-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

.ads-table tr:hover,
.users-table tr:hover {
    background: var(--gray-50);
}

.ad-title-cell strong {
    display: block;
    color: var(--navy-blue);
    margin-bottom: 0.25rem;
}

.ad-title-cell small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.active {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.rejected {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge.suspended {
    background: #f3f4f6;
    color: #6b7280;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-sm.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-sm.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-sm.btn-warning {
    background: var(--warning);
    color: var(--white);
}

.btn-sm.btn-danger {
    background: var(--error);
    color: var(--white);
}

.btn-sm:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.management-header h4 {
    color: var(--navy-blue);
    margin: 0;
}

.management-filters select,
.management-stats {
    padding: 0.5rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    background: var(--white);
}

.management-stats {
    color: var(--text-light);
    font-weight: 500;
}

/* Statistics */
.statistics {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stats-section h4 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

.stats-chart {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.chart-item {
    margin-bottom: 1rem;
}

.chart-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.chart-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-300);
    border-radius: 4px;
    overflow: hidden;
}

.chart-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 4px;
    transition: var(--transition);
}

.stats-summary h4 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-blue);
}

.summary-item span {
    color: var(--text-light);
}

.summary-item strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.admin-login {
    text-align: center;
    padding: 2rem;
}

.admin-login h3 {
    color: var(--navy-blue);
    margin-bottom: 2rem;
}

.admin-note {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-blue);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-blue);
}

.admin-note small {
    color: var(--primary-blue);
    font-weight: 500;
}

/* No ads message */
.no-ads {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.no-ads h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Additional styles for image count and video badge */
.image-count,
.video-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.video-badge {
    background: #ff0000;
}

/* User menu styles */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Upload preview styles */
.upload-preview {
    margin-top: 1rem;
}

/* Video container for YouTube embeds */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

.youtube-video {
    margin-bottom: 2rem;
}

.youtube-video h4 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .ads-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .floating-header {
        top: 10px;
        padding: 0.75rem 1.5rem;
    }
    
    .floating-header .main-title {
        font-size: 1.5rem;
    }
    
    .floating-header .subtitle {
        font-size: 0.75rem;
    }
    
    .navbar {
        top: 70px; /* Adjust for mobile to avoid overlap */
    }
    
    .hero {
        margin-top: 120px;
    }
    
    .borobudur-bg {
        right: -20%;
        top: 20%;
        width: 400px;
        height: 300px;
        opacity: 0.2;
    }
    
    .search-filter {
        margin-top: 140px; /* Adjust for mobile */
    }
    
    .category-page {
        margin-top: 150px; /* Adjust for mobile */
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--gray-200);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .nav-actions button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-input-group {
        min-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .post-ad-section {
        padding: 1rem;
    }
    
    .post-ad-form {
        padding: 1.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .floating-header {
        left: 10px;
        right: 10px;
        transform: none;
        padding: 0.5rem 1rem;
    }
    
    .floating-header .main-title {
        font-size: 1.25rem;
    }
    
    .hero-text h2 {
        font-size: 1.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Floating QRIS Digital Support */
.floating-qris {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-blue);
    overflow: hidden;
    transition: var(--transition);
    max-width: 200px;
    animation: fadeInUp 0.5s ease-out;
}

.floating-qris:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.qris-content {
    position: relative;
    padding: 15px;
}

.qris-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
}

.qris-header i {
    font-size: 16px;
}

.qris-body {
    text-align: center;
}

.qris-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    border: 1px solid var(--gray-200);
}

.qris-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.4;
}

.qris-subtitle {
    font-size: 10px;
    color: var(--text-light);
    display: block;
    line-height: 1.3;
}

.qris-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    font-size: 12px;
    transition: var(--transition);
}

.qris-toggle:hover {
    background: var(--gray-200);
    color: var(--text-dark);
}

.floating-qris.hidden {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

/* Show QRIS button when hidden */
.qris-show-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.qris-show-btn:hover {
    background: var(--primary-blue-dark);
    transform: scale(1.1);
}

.qris-show-btn.visible {
    display: flex;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness for QRIS */
@media (max-width: 768px) {
    .floating-qris {
        bottom: 80px;
        right: 15px;
        max-width: 180px;
    }
    
    .qris-content {
        padding: 12px;
    }
    
    .qris-image {
        width: 100px;
        height: 100px;
    }
    
    .category-image {
        width: 60px;
        height: 60px;
    }
    
    .category-image img {
        width: 60px;
        height: 60px;
    }
    
    .qris-show-btn {
        bottom: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .floating-qris {
        bottom: 70px;
        right: 10px;
        max-width: 160px;
    }
    
    .qris-image {
        width: 90px;
        height: 90px;
    }
    
    .qris-text {
        font-size: 11px;
    }
    
    .qris-subtitle {
        font-size: 9px;
    }
}
