/* Modern Apploqic Business Directory Styles */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap");
/* ... (no changes to CSS) */

:root {
    --bg-color: linear-gradient(135deg, #020617 0%, #0f172a 60%, #064e3b 100%);
    --card-bg: rgba(15, 23, 42, 0.6);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --primary-rgb: 59, 130, 246;
    --secondary: #10b981;
    --accent: #22d3ee;
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-height: 80px;
}

/* Fix for Select Options in Dark Mode */
select option {
    background-color: #0f172a;
    color: #f8fafc;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Outfit", sans-serif;
}

body {
    background: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-attachment: fixed;
    transition:
        background 0.3s ease,
        color 0.3s ease;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
}

.btn-glass {
    background: var(--card-bg);
    border: 1px solid var(--primary);
    color: var(--text-main);
    backdrop-filter: blur(4px);
}

.btn-glass:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-links a.active {
    position: relative;
    color: var(--primary);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary);
    left: 0;
    bottom: -5px;
}

.nav-actions {
    display: flex;
    gap: 15px;
}

/* Hero Section */
.hero {
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--nav-height);
}

body::before {
    content: "";
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    opacity: 0.2;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    opacity: 0.2;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to bottom right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.search-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px; /* Reduced padding */
    border-radius: 16px;
    display: flex;
    align-items: center; /* Ensure alignment */
    /* gap: 10px;  Removed gap to rely on separators */
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 20px;
    color: white;
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-btn {
    padding: 15px 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background: var(--accent);
}

/* Categories */
.section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 50px;
    margin-top: 15px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.category-name {
    font-weight: 600;
    color: var(--text-main);
}

/* Featured Listings */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.listing-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.listing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.listing-image {
    height: 180px;
    background: #2a3b55;
    position: relative;
    overflow: hidden;
}

.favorite-btn {
    /* position: absolute; - Removed to support flex parent */
    /* top: 15px; */
    /* right: 15px; */
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 5;
    color: #64748b; /* Darker gray for better visibility */
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: #fff;
    color: #ef4444; /* Red color on hover */
}

.favorite-btn.active,
.favorite-btn i.fas {
    color: #ef4444;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.listing-card:hover .listing-image img {
    transform: scale(1.1);
}

.listing-content {
    padding: 25px;
}

.listing-tag {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.listing-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.listing-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.rating {
    color: #fbbf24;
    font-weight: 600;
}

/* Footer */
footer {
    background: rgba(15, 23, 42, 0.9);
    padding: 80px 0 40px;
    margin-top: 100px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    margin-bottom: 25px;
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
}

/* Splide Customizations */
.splide {
    padding-bottom: 50px;
    padding-left: 10px;
    padding-right: 10px;
    overflow: visible !important;
}

.splide__arrow {
    background: rgba(15, 23, 42, 0.8);
    width: 4rem;
    height: 4rem;
    opacity: 1;
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    z-index: 10;
}

.splide__arrow--prev {
    left: -35px !important;
}

.splide__arrow--next {
    right: -35px !important;
}

.splide__arrow svg {
    fill: var(--primary);
    width: 1.2rem;
    height: 1.2rem;
    transition: fill 0.3s ease;
}

.splide__arrow:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    opacity: 1;
}

.splide__arrow:hover svg {
    fill: white;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-top: 50px; /* Add extra spacing for mobile header */
    }
}

.splide__pagination {
    bottom: 0;
}

.splide__pagination__page {
    background: var(--text-muted);
    opacity: 0.5;
    width: 10px;
    height: 10px;
    margin: 3px;
    transition: all 0.3s;
}

.splide__pagination__page.is-active {
    background: var(--primary);
    transform: scale(1);
    width: 30px;
    border-radius: 5px;
    opacity: 1;
}

/* Hamburger Button & Sidebar (Default Hidden) */
.menu-toggle {
    display: none;
}

.mobile-sidebar {
    display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Navbar Adjustment */
    .navbar {
        padding: 0 20px;
        justify-content: space-between;
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        gap: 10px;
        align-items: center;
    }

    /* Reveal Hamburger */
    .menu-toggle {
        display: block !important;
        background: transparent;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px;
        margin-left: 10px;
    }

    .nav-actions .btn-glass {
        display: none; /* Hide 'Add Listing' on very small screens to prevent clutter */
    }

    /* Mobile Sidebar Styles */
    .mobile-sidebar {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        z-index: 2000;
        transition: right 0.3s ease;
        padding: 20px;
        flex-direction: column;
        border-left: 1px solid var(--glass-border);
    }

    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        border-bottom: 1px solid var(--glass-border);
        padding-bottom: 15px;
    }

    .close-btn {
        background: transparent;
        border: none;
        color: var(--text-muted);
        font-size: 2rem;
        cursor: pointer;
    }

    .sidebar-links a {
        display: block;
        color: var(--text-main);
        text-decoration: none;
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .sidebar-links a.highlight {
        color: var(--primary);
        font-weight: 600;
        margin-top: 20px;
        border: none;
    }

    /* Hero Section */
    .hero {
        height: auto;
        min-height: 80vh;
        padding-bottom: 50px;
    }

    .hero h1 {
        font-size: 2.5rem;
        padding: 0 10px;
    }

    .hero p {
        padding: 0 20px;
    }

    .search-box {
        flex-direction: column;
        padding: 15px;
        margin: 0 20px;
    }

    .search-box div[style*="width: 1px"] {
        display: none; /* Hide the vertical divider */
    }

    .search-input {
        width: 100%;
        border-bottom: 1px solid var(--glass-border);
        padding: 12px 0;
    }

    .search-input:last-of-type {
        border-bottom: none;
    }

    .search-btn {
        width: 100%;
        margin-top: 10px;
    }

    /* Sections */
    .section {
        padding: 50px 20px; /* SIDE PADDING ADDED HERE */
    }

    .section-title {
        font-size: 2rem;
    }

    /* Splide Carousel Mobile */
    .splide {
        padding-bottom: 40px;
        overflow: hidden !important; /* Revert overflow for mobile swipe */
    }

    .splide__arrow {
        display: none; /* Hide arrows, rely on swipe */
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
}

/* Modern Select */
.modern-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 10px 45px 10px 20px;
    border-radius: 14px; /* More rounded */
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    transition: all 0.3s ease;
    min-width: 180px;
    backdrop-filter: blur(4px);
}

.modern-select:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modern-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Fix option styling */
.modern-select option {
    background-color: #0f172a; /* Dark background for options */
    color: #f8fafc;
    padding: 10px;
}

/* Custom Dropdown (Premium) */
.custom-select-container {
    position: relative;
    width: 200px;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    color: var(--text-main);
    font-weight: 500;
}

.custom-select-trigger:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.custom-select-container.open .custom-select-trigger {
    border-color: var(--primary);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.custom-select-container.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
}

.custom-option:hover {
    background: rgba(59, 130, 246, 0.1); /* Primary color low opacity */
    color: var(--primary);
    padding-left: 25px; /* Slight movement effect */
}

.custom-option.selected {
    background: var(--primary);
    color: white;
}

.custom-select-trigger i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.custom-select-container.open .custom-select-trigger i {
    transform: rotate(180deg);
}

/* Star Rating Half-Star Implementation */
.star-rating {
    display: inline-flex;
    position: relative;
    cursor: pointer;
}

.star-rating i {
    cursor: pointer;
    font-size: 2rem;
    color: var(--glass-border);
    transition: color 0.1s;
    position: relative;
    margin-right: 5px;
    display: inline-block;
    width: 2rem;
    text-align: center;
}

/* Modal Scrollbar Customization */
.modal-content::-webkit-scrollbar {
    width: 8px; /* Slimmer for better aesthetics */
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 10px 0; /* Keeps track away from top/bottom edges slightly */
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: var(--glass-border);
    border-radius: 20px; /* Matches the modal's rounded corners */
    border: 2px solid transparent; /* Creates padding effect inside the track */
    background-clip: content-box;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-muted);
}

/* Helper class for partial fill - this will be applied dynamically via JS */
/* Helper class for partial fill - this will be applied dynamically via JS */
.star-rating i.partial-fill {
    background: linear-gradient(90deg, #fbbf24 50%, var(--glass-border) 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Maintain dimensions for text-fill-color to work */
    display: inline-block;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px; /* 80px header + 20px gap */
    left: 20px;
    z-index: 20000;
    pointer-events: none; /* Allow clicks to pass through empty areas */
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.toast {
    pointer-events: auto; /* Re-enable clicks on the toast itself */
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    /* margin-bottom: 1rem; Remove margin bottom as gap in container handles it */
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    color: var(--text-main);
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid var(--success);
}
.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.toast-message {
    font-size: 0.95rem;
    font-weight: 500;
}

.toast-close {
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

/* Custom Loader */
.loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s ease-in-out infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.toast-close:hover {
    color: var(--text-main);
}
/* Premium Listing Glow Animation */
@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.listing-card.premium-plan {
    position: relative;
    border: none !important; /* Allow the simulated border to show */
    background: var(--card-bg);
    border-radius: 20px;
    z-index: 0; /* Ensure stacking context */
    /* overflow: hidden;  <-- REMOVED to allow border to be visible if needed, but with clip-path it might be okay. 
       Actually, if we use ::before with z-index -1, it needs to be behind. 
       If overflow is visible, the image might poke out top corners if we don't round it.
    */
    overflow: visible !important;
}

/* Round the image itself heavily to match card since card no longer clips it */
.listing-card.premium-plan .listing-image {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.listing-card.premium-plan::after,
.listing-card.premium-plan::before {
    content: "";
    position: absolute;
    /* Inset negative to form a border around the card */
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;

    background-image: conic-gradient(
        from var(--angle),
        transparent 70%,
        #f59e0b,
        #fbbf24,
        #f59e0b,
        transparent 100%
    );

    z-index: -1;
    border-radius: 22px; /* Slightly larger than 20px */
    animation: 3s spin-glow linear infinite;

    /* Masking to create border-only effect */
    padding: 2px;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.listing-card.premium-plan::before {
    filter: blur(1.5rem);
    opacity: 0.5;
}

@keyframes spin-glow {
    from {
        --angle: 0deg;
    }
    to {
        --angle: 360deg;
    }
}
/* Admin Dashboard Utilities & Cleanup */
.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}
@media (max-width: 900px) {
    .admin-grid-2 {
        grid-template-columns: 1fr;
    }
}
.glass-panel {
    background: var(--card-bg);
    padding: 25px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.glass-panel.fit-content {
    height: fit-content;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.admin-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.admin-table td {
    padding: 15px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-main);
}
.admin-table td.actions {
    text-align: right;
}
.admin-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    transition: all 0.3s ease;
}
.admin-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
.icon-input-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}
.icon-preview-box {
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 1.2rem;
    color: var(--primary);
}
.icon-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 12px;
    max-height: 220px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.1);
}
.icon-grid-container::-webkit-scrollbar {
    width: 6px;
}
.icon-grid-container::-webkit-scrollbar-track {
    background: transparent;
}
.icon-grid-container::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}
.icon-grid-item {
    cursor: pointer;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    color: var(--text-muted);
}
.icon-grid-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transform: scale(1.1);
}
.icon-grid-item.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}
.form-label-sm {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.helper-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    margin-top: 4px;
}

/* Admin Stats & Dashboard */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card-bg);
    padding: 25px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.stat-value.highlight {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.dashboard-card {
    background: var(--card-bg);
    padding: 25px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
    color: var(--text-main);
}

.dashboard-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.dashboard-card .valign-bottom {
    margin-top: auto;
}
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}
.text-warning {
    color: #f59e0b;
    font-weight: 600;
}

/* Admin Tables & Badges */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .page-header h1 {
        margin-bottom: 0;
    }
}

.table-responsive {
    overflow-x: auto;
}

.table-min-width {
    min-width: 800px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.05em;
}

.status-badge.approved {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.btn-icon-group {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-reject {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-reject:hover {
    background: #ef4444;
    color: white;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.tag {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
}
.tag.whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.2);
}
.tag.verified {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.tag.priority {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.tag.video {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.form-group-spaced {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}
.admin-textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
}
.admin-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}
.admin-select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: #1e293b;
    color: var(--text-main);
    cursor: pointer;
}
.admin-select:focus {
    outline: none;
    border-color: var(--primary);
}
.proof-image-container {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px dashed var(--glass-border);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
}
.proof-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 300px;
    object-fit: contain;
    display: block;
    margin-bottom: 10px;
}

.admin-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-main);
}
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
.checkbox-card {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 10px;
    transition: all 0.2s;
}
.checkbox-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--glass-border);
}
.checkbox-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Mobile Toast Positioning */
@media (max-width: 768px) {
    .toast-container {
        bottom: auto;
        top: 20px;
        right: 20px;
        left: auto;
        transform: none;
    }
}
