:root {
    /* LocalWebsCoder Brand Colors - Dark Theme */
    --primary-lime: #c4ff00;
    --secondary-lime: #d4ff33;
    --dark-bg: #0a0a0a;
    --dark-card: #1a1a1a;
    --dark-hover: #242424;
    --white: #FFFFFF;
    --light-text: #e5e5e5;
    --muted-text: #999999;
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --border-dark: #333333;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--light-text);
    background-color: var(--dark-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--dark-bg);
    color: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-dark);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-lime);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary-lime);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background: var(--secondary-lime);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(196, 255, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-lime);
    border: 2px solid var(--primary-lime);
}

.btn-secondary:hover {
    background: var(--primary-lime);
    color: var(--dark-bg);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.hero {
    background: var(--dark-bg);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(196, 255, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    position: relative;
}

.hero h1 span {
    color: var(--primary-lime);
    font-weight: bold;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--muted-text);
    position: relative;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.feature-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-dark);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-lime);
    box-shadow: 0 5px 20px rgba(196, 255, 0, 0.1);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-lime);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--white);
}

.feature-card p {
    color: var(--muted-text);
    font-size: 0.9rem;
}

.products-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--dark-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-dark);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-lime);
    box-shadow: 0 10px 30px rgba(196, 255, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--dark-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    border-bottom: 1px solid var(--border-dark);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    color: var(--white);
}

.product-category {
    display: inline-block;
    background: var(--primary-lime);
    color: var(--dark-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-lime);
    margin: 1rem 0;
}

.product-description {
    color: var(--muted-text);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.form-container {
    max-width: 500px;
    margin: 3rem auto;
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--white);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-dark);
    border-radius: 5px;
    font-size: 1rem;
    background: var(--dark-bg);
    color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-lime);
    box-shadow: 0 0 0 3px rgba(196, 255, 0, 0.1);
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    color: #4ade80;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    color: #f87171;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.alert-info {
    background: rgba(196, 255, 0, 0.1);
    color: var(--primary-lime);
    border: 1px solid rgba(196, 255, 0, 0.2);
}

footer {
    background: var(--dark-card);
    color: var(--light-text);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-dark);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-lime);
    color: var(--dark-bg);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-dark);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-lime);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--muted-text);
}

table {
    width: 100%;
    background: var(--dark-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-dark);
}

table thead {
    background: var(--dark-hover);
    color: var(--white);
    border-bottom: 2px solid var(--primary-lime);
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    color: var(--light-text);
}

table tbody tr {
    border-bottom: 1px solid var(--border-dark);
}

table tbody tr:hover {
    background: var(--dark-hover);
}

.category-filter {
    text-align: center;
    margin-bottom: 2rem;
}

.category-filter button {
    margin: 0 0.5rem;
}

/* Admin Styles */
.admin-header {
    margin-bottom: 2rem;
}

.admin-header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.admin-header p {
    color: var(--muted-text);
}

.card {
    background: var(--dark-card) !important;
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid var(--border-dark);
    margin-bottom: 2rem;
}

/* Override inline white backgrounds */
section > div[style*="background: white"],
section > div[style*="background:white"],
.container > div[style*="background: white"],
.container > div[style*="background:white"] {
    background: var(--dark-card) !important;
}

/* Product detail white boxes */
div[style*="background: white; padding: 2rem"],
div[style*="background:white;padding:2rem"] {
    background: var(--dark-card) !important;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Screenshot previews */
img {
    border-radius: 5px;
}

/* Product page layout */
.product-details {
    background: var(--dark-card) !important;
    border: 1px solid var(--border-dark);
}

.product-sidebar {
    background: var(--dark-card) !important;
}

.product-gallery {
    background: var(--dark-bg);
    border: 1px solid var(--border-dark);
}

.included-features {
    background: var(--dark-card);
    border: 1px solid var(--border-dark);
}

.included-features li {
    color: var(--light-text);
}

.included-features li::before {
    color: var(--success);
}

/* Product page specific overrides */
.product-page [style*="background: #f8f9fa"],
.product-page [style*="background:#f8f9fa"] {
    background: var(--dark-hover) !important;
}

/* Price styling */
.price-strike {
    text-decoration: line-through;
    color: var(--muted-text);
}

.sale-price {
    color: var(--danger);
}

/* Rating stars */
.rating {
    color: var(--primary-lime);
}

/* Force dark theme on all white backgrounds */
[style*="background: white"],
[style*="background:white"],
[style*="background: #fff"],
[style*="background:#fff"],
[style*="background: #FFF"],
[style*="background:#FFF"],
[style*="background: #ffffff"],
[style*="background:#ffffff"] {
    background: var(--dark-card) !important;
}

/* Product detail pages */
.product-detail-container,
.product-info-section {
    background: var(--dark-card) !important;
}

/* Ensure all h1, h2, h3 are white */
h1, h2, h3, h4, h5, h6 {
    color: var(--white);
}

/* Override any inline text colors */
[style*="color: #2C3E50"],
[style*="color:#2C3E50"] {
    color: var(--white) !important;
}

[style*="color: #666"],
[style*="color:#666"] {
    color: var(--muted-text) !important;
}

/* Small text should be muted */
small {
    color: var(--muted-text);
}

/* Fix checkbox labels */
.form-group label[style*="display: flex"] {
    display: flex !important;
    align-items: center;
    white-space: nowrap;
    width: fit-content;
}

/* Ensure checkboxes are properly sized */
input[type="checkbox"] {
    width: auto !important;
    min-width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Fix any text overflow in forms */
.form-group label {
    width: 100%;
    overflow: visible;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-direction: column;
        display: none;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}