/* assets/css/style.css */
/* Professional Corporate Florist CSS - Fully Responsive & Organized Edition */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary: #1b4332;
    --primary-light: #2d6a4f;
    --accent: #40916c;
    --accent-light: #b7e4c7;
    --bg-cream: #fbfaf7;
    --bg-white: #ffffff;
    --text-dark: #2d312e;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --success: #1b4332;
    --danger: #ef4444;
    --gold: #d4af37;
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--primary);
    color: var(--bg-cream);
    text-align: center;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Header & Navigation */
header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.logo a {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.6rem;
}

/* Desktop Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
    padding: 0.25rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

nav a:hover, nav a.active {
    color: var(--primary);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

/* Navigation Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    list-style: none;
    min-width: 200px;
    display: none;
    padding: 0.5rem 0;
    z-index: 110;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 0.5rem 1.25rem;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background-color: rgba(27, 67, 50, 0.05);
    color: var(--primary);
}

@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.cart-icon-btn {
    position: relative;
    font-size: 1.3rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.cart-icon-btn:hover {
    background-color: rgba(27, 67, 50, 0.05);
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mobile-menu-toggle:hover {
    background-color: rgba(27, 67, 50, 0.05);
}

/* Responsive Navigation Breakpoint */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 73px;
        left: 0;
        width: 100%;
        height: calc(100vh - 73px);
        background-color: var(--bg-white);
        z-index: 99;
        transform: translateX(-100%);
        transition: var(--transition);
        border-right: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }

    nav.nav-active {
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    nav a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background-color: transparent;
        display: block;
        padding-left: 1.5rem;
        padding-top: 0.5rem;
    }
    
    .dropdown-menu a {
        font-size: 0.95rem;
        padding: 0.35rem 0;
    }
}

/* Hero / Banner */
.hero-section {
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.04) 0%, rgba(216, 243, 220, 0.15) 100%);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(27, 67, 50, 0.05);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--bg-cream);
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.hero-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-section {
        padding: 3rem 1rem;
    }
}

/* Popular Categories */
.section-title {
    text-align: center;
    font-family: var(--font-serif);
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    padding: 0 1.5rem;
}

/* horizontal categories layout on mobile */
.categories-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
}

@media (max-width: 768px) {
    .categories-grid {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.75rem;
        gap: 1.25rem;
        -webkit-overflow-scrolling: touch;
    }
    /* Hide scrollbar but keep scroll functionality */
    .categories-grid::-webkit-scrollbar {
        display: none;
    }
}

.category-circle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    flex-shrink: 0; /* Prevents compression on mobile */
}

.category-circle-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    font-size: 1.8rem;
    transition: var(--transition);
}

.category-circle-card:hover .category-circle-wrapper {
    transform: translateY(-3px);
    background-color: var(--primary);
    color: var(--bg-cream);
    border-color: var(--primary);
}

.category-circle-name {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-dark);
}

/* Products Section */
.products-section {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 0 1.5rem;
}

.category-header {
    border-left: 3px solid var(--primary);
    padding-left: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.category-header h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--primary);
}

/* Products Grid: 4 columns on desktop, 2 columns on mobile */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Product Card */
.product-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(27, 67, 50, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -8px rgba(27, 67, 50, 0.15);
    border-color: rgba(27, 67, 50, 0.2);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-image-container {
    height: 240px;
    overflow: hidden;
    position: relative;
    background-color: #f3f4f6;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.03);
}

.product-details {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.old-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.8rem;
}

.current-price {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.05rem;
}

.product-card-btn {
    width: 100%;
    background-color: var(--primary);
    color: var(--bg-cream);
    border: none;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    display: block;
    margin-top: auto;
}

.product-card-btn:hover {
    background-color: var(--primary-light);
}

/* Mobile grids card adjustments */
@media (max-width: 768px) {
    .product-image-container {
        height: 150px;
    }
    .product-title {
        font-size: 0.85rem;
    }
    .current-price {
        font-size: 0.95rem;
    }
    .old-price {
        font-size: 0.75rem;
    }
    .product-card-btn {
        padding: 0.45rem;
        font-size: 0.8rem;
    }
}

/* Floating WhatsApp Button */
.whatsapp-floating {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    font-size: 1.6rem;
    transition: var(--transition);
}

.whatsapp-floating:hover {
    transform: scale(1.08) rotate(5deg);
}

/* Product Detail Page */
.detail-container {
    max-width: 1200px;
    margin: 1.5rem auto 4rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .detail-container {
        grid-template-columns: 1fr;
    }
}

.detail-img-box {
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: 420px;
}

@media (max-width: 480px) {
    .detail-img-box {
        height: 300px;
    }
}

.detail-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info-box {
    background-color: white;
    border-radius: 6px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.detail-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.detail-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.detail-form {
    display: grid;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(27, 67, 50, 0.1);
}

/* Cart Page Responsiveness */
.cart-container {
    max-width: 1200px;
    margin: 1.5rem auto 4rem auto;
    padding: 0 1.5rem;
}

.cart-table-wrapper {
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.cart-table th {
    background-color: var(--primary);
    color: white;
    padding: 1rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    font-size: 0.9rem;
}

.cart-product-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-product-img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    background-color: #f3f4f6;
}

.cart-product-info h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--primary);
}

.cart-remove-btn {
    color: var(--danger);
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 0.85rem;
}

.cart-remove-btn:hover {
    text-decoration: underline;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: max-content;
    overflow: hidden;
}

.qty-btn {
    background-color: #f9fafb;
    border: none;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background-color: #e5e7eb;
}

.qty-input {
    width: 35px;
    height: 28px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

/* Mobil Sepet Görünümü */
@media (max-width: 768px) {
    .cart-table-wrapper {
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
        display: block;
        width: 100%;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tr {
        background-color: white;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        margin-bottom: 1rem;
        padding: 0.5rem;
        box-shadow: var(--shadow-sm);
    }

    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px dashed #f3f4f6;
        padding: 0.75rem 0.5rem;
    }

    .cart-table td:last-child {
        border-bottom: none;
    }

    .cart-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--primary);
        font-size: 0.8rem;
        text-transform: uppercase;
    }

    .cart-table td:first-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cart-table td:first-child::before {
        display: none;
    }

    .cart-product-cell {
        width: 100%;
    }
}

.cart-summary-box {
    max-width: 400px;
    margin-left: auto;
    background-color: white;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .cart-summary-box {
        max-width: 100%;
    }
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.summary-total {
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

/* Checkout Page Grid */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 1.5rem auto 4rem auto;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

.checkout-box {
    background-color: white;
    border-radius: 6px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.checkout-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.checkout-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .checkout-group {
        grid-template-columns: 1fr;
        margin-bottom: 0;
    }
    .checkout-group .form-group {
        margin-bottom: 1rem;
    }
}

/* Payment Page & IBAN Overflow Prevention */
.payment-wrapper {
    max-width: 700px;
    margin: 2rem auto 4rem auto;
    padding: 0 1rem;
}

.payment-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.payment-header {
    background-color: var(--primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.payment-header h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
}

.payment-header .order-no {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.payment-body {
    padding: 2rem 1.5rem;
}

.instruction-alert {
    background-color: #fffbeb;
    border-left: 3px solid var(--gold);
    color: #b45309;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* bank details responsive layout */
.bank-details-box {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    background-color: #fafbfc;
}

.bank-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bank-detail-row:last-child {
    border-bottom: none;
}

.bank-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 100px;
}

.bank-value {
    font-weight: 700;
    color: var(--primary);
    text-align: right;
    font-size: 0.95rem;
}

.iban-canvas-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
}

.iban-canvas {
    background: #f9fafb;
    border: 1px dashed var(--accent-light);
    border-radius: 4px;
    max-width: 100%;
}

.copy-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.copy-btn:hover {
    background-color: var(--primary-light);
}

/* Stacking details on small screens */
@media (max-width: 576px) {
    .bank-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        padding: 0.6rem 0;
    }
    .bank-value {
        text-align: left;
    }
    .iban-canvas-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .iban-canvas {
        width: 100% !important;
    }
}

.alert-danger-box {
    background-color: #fef2f2;
    border-left: 3px solid var(--danger);
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.receipt-upload-box {
    border: 2px dashed var(--border-color);
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
    transition: var(--transition);
    margin-bottom: 1.5rem;
    background-color: #fafbfc;
}

.receipt-upload-box:hover {
    border-color: var(--primary);
}

.receipt-upload-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.whatsapp-alternative {
    text-align: center;
    margin-top: 1.5rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25d366;
    color: white;
    padding: 0.65rem 1.25rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.whatsapp-btn:hover {
    background-color: #1ebea5;
    transform: translateY(-1px);
}

/* Footer Section */
footer {
    background-color: var(--primary);
    color: var(--bg-cream);
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    margin-top: auto;
    border-top: 3px solid var(--accent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.4rem;
    color: var(--bg-cream);
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-light);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: rgba(251, 250, 247, 0.8);
}

.footer-column a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(251, 250, 247, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(251, 250, 247, 0.6);
}

/* Admin Dashboard Layout & Responsiveness */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1b4332 0%, #081c15 100%);
    color: white;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.admin-logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition);
}

.admin-menu li.active a,
.admin-menu a:hover {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(64, 145, 108, 0.25);
}

.admin-main {
    flex-grow: 1;
    padding: 2.5rem;
    background-color: #f8fafc;
    overflow-y: auto;
    position: relative;
}

/* Admin Mobile Sidebar Toggler */
.admin-sidebar-toggle {
    display: none;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 1024px) {
    .admin-sidebar-toggle {
        display: inline-flex;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 260px;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-main {
        padding: 1.5rem 1rem;
    }
}

@media (min-width: 1025px) {
    .admin-sidebar {
        display: flex !important;
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
    }
    .admin-sidebar-toggle {
        display: none !important;
    }
}

.admin-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

/* WooCommerce style tabs navigation */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.admin-tab {
    background-color: white;
    color: #4b5563;
    border: 1px solid var(--border-color);
    padding: 0.55rem 1.1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.admin-tab:hover, .admin-tab.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.15);
}

.tab-badge {
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
}

.admin-tab:hover .tab-badge, .admin-tab.active .tab-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Badge status indicators */
.badge-status {
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-pending { 
    background-color: #fffbeb; 
    color: #d97706; 
    border: 1px solid #fde68a;
}
.badge-pending::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #d97706;
}

.badge-paid { 
    background-color: #ecfdf5; 
    color: #059669; 
    border: 1px solid #a7f3d0;
}
.badge-paid::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #059669;
}

.badge-receipt_uploaded { 
    background-color: #eff6ff; 
    color: #1d4ed8; 
    border: 1px solid #bfdbfe;
}
.badge-receipt_uploaded::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #1d4ed8;
}

.badge-completed { 
    background-color: #f0fdf4; 
    color: #15803d; 
    border: 1px solid #bbf7d0;
}
.badge-completed::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #15803d;
}

.badge-cancelled { 
    background-color: #fef2f2; 
    color: #dc2626; 
    border: 1px solid #fecaca;
}
.badge-cancelled::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #dc2626;
}

/* Admin Grid Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.stat-card-total { border-left: 4px solid #3b82f6; }
.stat-card-revenue { border-left: 4px solid #10b981; }
.stat-card-pending { border-left: 4px solid #f59e0b; }
.stat-card-receipt { border-left: 4px solid #8b5cf6; }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-card-total .stat-icon { background-color: #eff6ff; color: #3b82f6; }
.stat-card-revenue .stat-icon { background-color: #ecfdf5; color: #10b981; }
.stat-card-pending .stat-icon { background-color: #fffbeb; color: #f59e0b; }
.stat-card-receipt .stat-icon { background-color: #f5f3ff; color: #8b5cf6; }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 0.15rem;
}

/* Admin Tables (Responsive Scroll) */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    font-weight: 700;
    color: var(--primary);
    background-color: #f8fafc;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Lightbox Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 1rem;
    max-height: 60vh;
    overflow-y: auto;
    text-align: center;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 24px;
    right: 24px;
    background-color: #25d366;
    color: white !important;
    border-radius: 50%;
    text-align: center;
    font-size: 34px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}
