/* Halloween Theme - Spooky and Dark with Improved Text Size */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #ffd700;
    --background-color: linear-gradient(135deg, #1a1a1a 0%, #2d1b1b 50%, #1a1a1a 100%);
    --surface-color: rgba(139, 0, 0, 0.3);
    --text-color: #f0f0f0;
    --text-muted: #cccccc;
    --border-color: rgba(255, 107, 53, 0.3);
    --success-color: #00ff00;
    --success-bg: rgba(0, 255, 0, 0.1);
    --error-color: #ff0000;
    --error-bg: rgba(255, 0, 0, 0.2);
    --warning-color: #ffd700;
    --warning-bg: rgba(255, 215, 0, 0.2);
    
    /* Additional Halloween Theme Colors */
    --card-background: rgba(26, 26, 26, 0.8);
    --modal-background: rgba(0, 0, 0, 0.9);
    --input-background: rgba(45, 27, 27, 0.6);
    --button-primary: linear-gradient(45deg, #ff6b35, #ff4500);
    --button-secondary: linear-gradient(45deg, #8b0000, #a0522d);
    --button-success: linear-gradient(45deg, #228b22, #32cd32);
    --button-warning: linear-gradient(45deg, #ffd700, #ffa500);
    --button-danger: linear-gradient(45deg, #8b0000, #dc143c);
    --shadow-color: rgba(0, 0, 0, 0.6);
    --accent-color: #ffd700;
    --nav-link-hover-bg: rgba(255, 107, 53, 0.3);
    --nav-link-hover-color: #ffd700;
}

/* Global Theme Application */
* {
    box-sizing: border-box;
}

body {
    background: var(--background-color);
    color: var(--text-color);
    font-family: 'Creepster', 'Chiller', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    font-size: 16px; /* Base font size increased */
}

/* Spooky background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(139, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Headers and Navigation */
.header {
    background: var(--surface-color);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.nav {
    background: transparent;
}

.nav a, .nav button {
    color: var(--text-color);
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
    font-size: 1.1rem; /* Increased nav text size */
}

.nav a:hover, .nav button:hover {
    background: var(--nav-link-hover-bg);
    color: var(--nav-link-hover-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    transform: scale(1.05);
}

/* Logo */
.logo {
    background: var(--button-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.8));
    font-weight: bold;
    font-size: 1.8rem; /* Increased logo size */
}

/* Cards and Containers */
.card, .container, .item-card, .data-table, .login-container, .register-container, .contact-form, .admin-link, .stat-card {
    background: var(--card-background);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    box-shadow: 0 8px 25px var(--shadow-color), inset 0 0 20px rgba(255, 107, 53, 0.1);
    position: relative;
    font-size: 1.05rem; /* Increased card text size */
}

.card::before, .container::before, .item-card::before, .login-container::before, .register-container::before, .contact-form::before, .admin-link::before, .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 107, 53, 0.1) 50%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before, .container:hover::before, .item-card:hover::before, .login-container:hover::before, .register-container:hover::before, .contact-form:hover::before, .admin-link:hover::before, .stat-card:hover::before {
    opacity: 1;
}

.item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px var(--shadow-color), 0 0 30px rgba(255, 107, 53, 0.4);
    border-color: var(--primary-color);
}

/* Form Elements */
input, select, textarea {
    background-color: var(--input-background);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    font-size: 1.1rem; /* Increased form text size */
    padding: 0.8rem; /* Increased padding */
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    background-color: rgba(45, 27, 27, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.4), inset 0 0 15px rgba(255, 107, 53, 0.2);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
    font-size: 1.05rem; /* Increased placeholder text size */
}

select option {
    background-color: #1a1a1a;
    color: var(--text-color);
    padding: 8px;
    font-size: 1.05rem; /* Increased option text size */
}

/* Buttons */
.btn {
    background: var(--button-primary);
    color: white;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    font-size: 1.1rem; /* Increased button text size */
    padding: 0.9rem 1.8rem; /* Increased button padding */
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.btn-secondary {
    background: var(--button-secondary);
    border-color: #8b0000;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

.btn-success {
    background: var(--button-success);
    border-color: #228b22;
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.4);
}

.btn-warning {
    background: var(--button-warning);
    border-color: #ffd700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-danger {
    background: var(--button-danger);
    border-color: #8b0000;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

/* Cart Button */
.cart-btn {
    background: var(--button-primary);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    font-size: 1.1rem; /* Increased cart button text size */
    padding: 0.7rem 1.2rem; /* Increased cart button padding */
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
    font-size: 1.05rem; /* Increased link text size */
}

a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Modals */
.cart-modal {
    background-color: var(--modal-background);
}

.cart-content {
    background: var(--card-background);
    backdrop-filter: blur(15px);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    box-shadow: 0 20px 60px var(--shadow-color), 0 0 40px rgba(255, 107, 53, 0.3);
    font-size: 1.05rem; /* Increased modal text size */
}

/* Status Indicators */
.status-active {
    color: var(--success-color);
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
    font-size: 1.05rem; /* Increased status text size */
}

.status-inactive {
    color: var(--error-color);
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
    font-size: 1.05rem; /* Increased status text size */
}

.favorite-yes {
    color: var(--warning-color);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
    font-size: 1.05rem; /* Increased favorite text size */
}

.favorite-no {
    color: var(--text-muted);
    font-size: 1.05rem; /* Increased favorite text size */
}

/* Tables */
table {
    background: var(--card-background);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
    font-size: 1.05rem; /* Increased table text size */
}

th, td {
    border-color: var(--border-color);
    color: var(--text-color);
    padding: 1.2rem; /* Increased table cell padding */
}

th {
    background: var(--surface-color);
    text-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
    font-size: 1.1rem; /* Increased table header text size */
}

/* Item Images */
.item-image {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

/* Item Names and Descriptions */
.item-name {
    font-size: 1.3rem; /* Increased item name text size */
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.item-description {
    font-size: 1.1rem; /* Increased item description text size */
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.item-price {
    font-size: 1.4rem; /* Increased item price text size */
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Hero Sections */
.hero h1 {
    background: var(--button-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.8));
    font-size: 3.5rem; /* Increased hero text size */
}

.hero p {
    font-size: 1.3rem; /* Increased hero paragraph text size */
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Messages */
.message {
    background: var(--success-bg);
    border: 2px solid var(--success-color);
    color: var(--success-color);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    font-size: 1.1rem; /* Increased message text size */
    padding: 1.2rem; /* Increased message padding */
}

.error {
    background: var(--error-bg);
    border: 2px solid var(--error-color);
    color: var(--error-color);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    font-size: 1.1rem; /* Increased error text size */
    padding: 1.2rem; /* Increased error padding */
}

/* Page Headers */
.page-header h1 {
    background: var(--button-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.8));
    font-size: 3rem; /* Increased page header text size */
}

.page-header p {
    font-size: 1.2rem; /* Increased page header paragraph text size */
    color: var(--text-muted);
}

/* Admin Links */
.admin-link:hover {
    background: var(--nav-link-hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px var(--shadow-color), 0 0 30px rgba(255, 107, 53, 0.4);
}

/* Statistics Cards */
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-color), 0 0 30px rgba(255, 107, 53, 0.4);
}

/* Mobile Menu */
.mobile-menu {
    background: var(--card-background);
    backdrop-filter: blur(15px);
    border-top: 2px solid var(--border-color);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    font-size: 1.1rem; /* Increased mobile menu text size */
}

.mobile-menu a, .mobile-menu button {
    font-size: 1.1rem; /* Increased mobile menu link text size */
    padding: 1rem; /* Increased mobile menu link padding */
}

/* Close Buttons */
.close-btn:hover {
    background: var(--nav-link-hover-bg);
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Cart Items */
.cart-item {
    border-bottom: 2px solid var(--border-color);
    font-size: 1.05rem; /* Increased cart item text size */
}

.cart-item:hover {
    background: var(--surface-color);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
}

.cart-item-name {
    font-size: 1.2rem; /* Increased cart item name text size */
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-size: 1.1rem; /* Increased cart item price text size */
    color: var(--text-muted);
}

/* Checkout Button */
.checkout-btn {
    background: var(--button-primary);
    border: 2px solid var(--primary-color);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
    font-size: 1.2rem; /* Increased checkout button text size */
    padding: 1.2rem; /* Increased checkout button padding */
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.7);
}

/* Cart Total */
.cart-total {
    font-size: 1.8rem; /* Increased cart total text size */
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Form Labels */
.form-group label {
    font-size: 1.1rem; /* Increased form label text size */
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        font-size: 15px; /* Slightly smaller base font for mobile */
    }
    
    .logo {
        font-size: 1.5rem; /* Smaller logo for mobile */
    }
    
    .hero h1 {
        font-size: 2.5rem; /* Smaller hero text for mobile */
    }
    
    .hero p {
        font-size: 1.1rem; /* Smaller hero paragraph for mobile */
    }
    
    .page-header h1 {
        font-size: 2.2rem; /* Smaller page header for mobile */
    }
    
    .item-name {
        font-size: 1.2rem; /* Smaller item name for mobile */
    }
    
    .item-description {
        font-size: 1rem; /* Smaller item description for mobile */
    }
    
    .item-price {
        font-size: 1.3rem; /* Smaller item price for mobile */
    }
    
    .btn {
        font-size: 1rem; /* Smaller button text for mobile */
        padding: 0.8rem 1.5rem; /* Smaller button padding for mobile */
    }
    
    .cart-btn {
        font-size: 1rem; /* Smaller cart button for mobile */
        padding: 0.6rem 1rem; /* Smaller cart button padding for mobile */
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px; /* Even smaller base font for small mobile */
    }
    
    .logo {
        font-size: 1.3rem; /* Even smaller logo for small mobile */
    }
    
    .hero h1 {
        font-size: 2rem; /* Even smaller hero text for small mobile */
    }
    
    .page-header h1 {
        font-size: 1.8rem; /* Even smaller page header for small mobile */
    }
    
    .item-name {
        font-size: 1.1rem; /* Even smaller item name for small mobile */
    }
    
    .item-description {
        font-size: 0.95rem; /* Even smaller item description for small mobile */
    }
    
    .item-price {
        font-size: 1.2rem; /* Even smaller item price for small mobile */
    }
}

/* Spooky animations */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 5px rgba(255, 107, 53, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 107, 53, 0.8), 0 0 30px rgba(255, 215, 0, 0.5); }
}

.logo {
    animation: glow 3s ease-in-out infinite;
}

.nav a:hover, .nav button:hover {
    animation: flicker 0.5s ease-in-out infinite;
}