/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --accent: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --success: #4cc9f0;
    --danger: #f72585;
    --warning: #f8961e;
    --border-radius: 12px;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.12);
}

body {
    background-color: #f5f7ff;
    color: var(--dark);
    line-height: 1.6;
}

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

/* Navigation */

.navbar {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Navigation button states */
.nav-btn.hidden {
    display: none !important;
}

.nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0f0f0;
}

.nav-btn.disabled:hover {
    background: #f0f0f0;
    color: inherit;
    border-color: #ddd;
}

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

.logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: var(--light-gray);
    border-radius: 50px;
    padding: 8px 20px;
    width: 40%;
    min-width: 300px;
}

.search-container i {
    color: var(--gray);
    margin-right: 10px;
}

.search-container input {
    border: none;
    background: transparent;
    padding: 8px 0;
    width: 100%;
    font-size: 1rem;
    outline: none;
}

.search-container button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.search-container button:hover {
    background-color: var(--primary-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.nav-link i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

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

.admin-link {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-search {
    display: flex;
    max-width: 600px;
    margin-top: 30px;
}

.hero-search input {
    flex: 1;
    padding: 18px 25px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1.1rem;
    outline: none;
    transition: border 0.3s;
}

.hero-search input:focus {
    border-color: var(--primary);
}

.hero-search button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0 35px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-search button:hover {
    background-color: var(--primary-dark);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Categories */
.categories {
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--dark);
    text-align: center;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.category-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.category-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.category-card h3 {
    font-size: 1.2rem;
    color: var(--dark);
}

/* Items Section */
.items-section {
    padding: 40px 5% 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.items-count {
    background-color: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

#sortSelect {
    padding: 12px 20px;
    border-radius: var(--border-radius);
    border: 2px solid var(--light-gray);
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}

.clear-btn {
    background-color: var(--light-gray);
    color: var(--dark);
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.clear-btn:hover {
    background-color: #d8d8d8;
}

/* Items Container */
.items-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.item-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.item-image {
    height: 200px;
    overflow: hidden;
}

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

.item-card:hover .item-image img {
    transform: scale(1.05);
}

.item-info {
    padding: 20px;
}

.item-category {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.item-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.item-description {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.item-date {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Categories Section */
.categories {
    padding: 40px 20px;
    background: #f8f9fa;
}

.categories .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 10px;
}

.category-navigation {
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.nav-btn:active {
    transform: scale(0.95);
}

.categories-wrapper {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
}

.category-list {
    display: flex;
    gap: 15px;
    padding: 10px;
    transition: transform 0.3s ease;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.category-list::-webkit-scrollbar {
    display: none;
}

.category-card {
    flex: 0 0 auto;
    width: 120px;
    height: 140px;
    background: white;
    border-radius: 12px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.category-card.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.category-card.active i {
    color: white;
}

.category-card i {
    font-size: 28px;
    color: #007bff;
    margin-bottom: 12px;
}

.category-card h3 {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}


/* Order Now Button Styles */
.order-now-btn {
    background-color: #25D366; /* WhatsApp green */
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(37, 211, 102, 0.3);
}

.order-now-btn:hover {
    background-color: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.4);
}

.order-now-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(37, 211, 102, 0.3);
}

.order-now-btn i {
    font-size: 18px;
}

/* Item card adjustments for button */
.item-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.item-price {
    font-size: 18px;
    font-weight: bold;
    color: #e44d26;
    margin: 8px 0;
}

.item-description {
    flex-grow: 1;
    margin-bottom: 8px;
}

/* Mobile responsiveness for order button */
@media (max-width: 768px) {
    .order-now-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .order-now-btn i {
        font-size: 16px;
    }
}
/* Desktop view - show more categories per row */
@media (min-width: 768px) {
    .category-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        overflow-x: visible;
    }
    
    .category-card {
        width: 140px;
        height: 150px;
    }
    
    .category-card i {
        font-size: 32px;
    }
    
    .category-card h3 {
        font-size: 14px;
    }
    
    .category-navigation {
        display: none; /* Hide navigation buttons on desktop */
    }
}

/* Mobile specific adjustments */
@media (max-width: 767px) {
    .categories {
        padding: 30px 15px;
    }
    
    .categories .section-header {
        padding: 0 5px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .category-card {
        width: 110px;
        height: 130px;
        padding: 15px 10px;
    }
    
    .category-card i {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .category-card h3 {
        font-size: 12px;
    }
    
    /* Show scroll indicator on mobile */
    .categories-wrapper {
        position: relative;
    }
    
    .categories-wrapper::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, transparent, #f8f9fa);
        pointer-events: none;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .category-card {
        width: 100px;
        height: 120px;
    }
    
    .category-card i {
        font-size: 22px;
    }
    
    .category-card h3 {
        font-size: 11px;
    }
}

/* Loading Spinner */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-gray);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 5rem;
    color: var(--light-gray);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.empty-state p {
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 5% 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
}

.footer-section h3 i {
    margin-right: 10px;
    color: var(--primary);
}

.footer-section p {
    color: #bbb;
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-section a {
    display: block;
    color: #bbb;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.9rem;
}

/* Search Suggestions Styles */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    border-top: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    font-size: 14px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

.suggestion-item.active {
    background-color: #e3f2fd;
    font-weight: bold;
}

/* Search container positioning */
.search-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

/* WhatsApp Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
}

.whatsapp-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 16px 16px 0 0;
}

.popup-header h3 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.popup-content {
    padding: 25px;
}

.popup-item-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #25D366;
}

.popup-item-info h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.popup-item-details {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.popup-category, .popup-price {
    background: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.popup-category {
    color: #25D366;
    border: 1px solid #25D366;
}

.popup-price {
    color: #e44d26;
    border: 1px solid #e44d26;
}

.popup-description {
    margin: 10px 0 0 0;
    color: #666;
    line-height: 1.5;
    font-size: 14px;
}

/* WhatsApp Options */
.whatsapp-options {
    margin-bottom: 25px;
}

.option-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.option-header i {
    color: #25D366;
    font-size: 20px;
}

.option-header h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.number-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.number-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.number-option:hover {
    border-color: #25D366;
    background: #f8fff9;
}

.number-option.selected {
    border-color: #25D366;
    background: #f0fff4;
}

.option-radio {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-option.selected .option-radio {
    border-color: #25D366;
}

.radio-circle {
    width: 12px;
    height: 12px;
    background: #25D366;
    border-radius: 50%;
    display: none;
}

.number-option.selected .radio-circle {
    display: block;
}

.option-info {
    flex: 1;
}

.option-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.option-number {
    color: #25D366;
    font-weight: 500;
    font-size: 15px;
}

/* Customer Details */
.customer-details {
    margin-bottom: 25px;
}

.customer-details .form-group {
    margin-bottom: 20px;
}

.customer-details label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.customer-details label i {
    color: #25D366;
}

.customer-details input,
.customer-details textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.3s;
    box-sizing: border-box;
}

.customer-details input:focus,
.customer-details textarea:focus {
    outline: none;
    border-color: #25D366;
}

/* Popup Actions */
.popup-actions {
    display: flex;
    gap: 15px;
}

.btn-cancel, .btn-send-whatsapp {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-cancel {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #ddd;
}

.btn-cancel:hover {
    background: #e9ecef;
    border-color: #ccc;
}

.btn-send-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.btn-send-whatsapp:hover {
    background: linear-gradient(135deg, #1da851, #0d7c6e);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-send-whatsapp:active {
    transform: translateY(0);
}

/* Order Success Message */
.order-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left: 5px solid #25D366;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    max-width: 400px;
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.order-success-message.show {
    transform: translateX(0);
}

.order-success-message i {
    color: #25D366;
    font-size: 28px;
    margin-top: 2px;
}

.order-success-message h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.order-success-message p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Responsive Popup */
@media (max-width: 600px) {
    .whatsapp-popup {
        width: 95%;
        max-height: 85vh;
    }
    
    .popup-header {
        padding: 15px 20px;
    }
    
    .popup-content {
        padding: 20px;
    }
    
    .popup-actions {
        flex-direction: column;
    }
    
    .order-success-message {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Mobile optimization */
@media (max-width: 480px) {
    .whatsapp-popup {
        border-radius: 12px;
    }
    
    .popup-item-info {
        padding: 15px;
    }
    
    .popup-item-details {
        flex-direction: column;
        gap: 8px;
    }
}

/* Adjust search input to account for suggestions */
#searchInput {
    width: 100%;
    border-radius: 8px 8px 0 0;
}

/* When suggestions are shown */
.search-container:has(.search-suggestions[style*="display: block"]) #searchInput {
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #ddd;
}

/* ================= ADMIN STYLES ================= */
.admin-body {
    background-color: #f0f2f5;
}

.admin-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 20px 5%;
    box-shadow: var(--shadow);
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-back {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: opacity 0.3s;
}

.admin-back:hover {
    opacity: 0.9;
}

.admin-header h1 {
    font-size: 2rem;
}

.admin-header h1 i {
    margin-right: 15px;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: var(--border-radius);
}

.admin-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 5%;
}

/* Login Section */
.admin-login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    padding: 40px;
    width: 100%;
    max-width: 500px;
}

.login-card h2 {
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-description {
    color: var(--gray);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border 0.3s;
    outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--gray);
    font-size: 0.85rem;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.login-note {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
}

.login-note p {
    margin-bottom: 15px;
    color: var(--dark);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.login-note ol {
    padding-left: 25px;
    color: var(--gray);
}

.login-note li {
    margin-bottom: 8px;
}

/* Admin Dashboard */
.admin-dashboard {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dashboard-header h2 {
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-logout {
    background-color: var(--danger);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-logout:hover {
    background-color: #e11575;
}

/* Admin Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--primary);
}

.stat-info h3 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Add Item Section */
.add-item-section, .manage-items-section {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.add-item-section h3, .manage-items-section h3 {
    color: var(--dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-add, .btn-clear, .btn-edit, .btn-delete {
    padding: 14px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn-add:hover {
    background-color: var(--primary-dark);
}

.btn-clear {
    background-color: var(--light-gray);
    color: var(--dark);
}

.btn-clear:hover {
    background-color: #d8d8d8;
}

/* Admin Items List */
.search-admin {
    display: flex;
    margin-bottom: 25px;
}

.search-admin input {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
    outline: none;
}

.search-admin button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    font-size: 1.2rem;
}

.admin-items-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-item-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-item-info {
    flex: 1;
    min-width: 300px;
}

.admin-item-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.admin-item-category {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.admin-item-description {
    color: var(--gray);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.admin-item-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.admin-item-actions {
    display: flex;
    gap: 10px;
}

.btn-edit {
    background-color: var(--success);
    color: white;
    padding: 10px 20px;
}

.btn-edit:hover {
    background-color: #3db5d8;
}

.btn-delete {
    background-color: var(--danger);
    color: white;
    padding: 10px 20px;
}

.btn-delete:hover {
    background-color: #e11575;
}

/* Admin Footer */
.admin-footer {
    text-align: center;
    padding: 30px 5%;
    background-color: var(--dark);
    color: white;
    margin-top: 60px;
}

.admin-footer p {
    margin-bottom: 10px;
    color: #bbb;
}

.footer-note {
    font-size: 0.9rem;
    color: #888;
}

/* ===== RESPONSIVE STYLES ===== */

/* Tablet Devices (768px to 1024px) */
@media (max-width: 1024px) {
    .nav-container, .hero, .categories, .items-section, .footer-content {
        padding-left: 3%;
        padding-right: 3%;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-image img {
        max-width: 500px;
    }
    
    .category-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    
    .items-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

/* Mobile Devices (up to 767px) */
@media (max-width: 767px) {
    /* Navigation for Mobile */
    .nav-container {
        flex-wrap: wrap;
        padding: 15px 4%;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 1.7rem;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        min-width: auto;
        margin-top: 15px;
        border-radius: var(--border-radius);
    }
    
    .search-container button {
        padding: 10px 15px;
        white-space: nowrap;
    }
    
    .nav-links {
        display: none; /* Hide by default on mobile */
        width: 100%;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--light-gray);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-link {
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }
    
    .nav-link i {
        margin-right: 10px;
        margin-bottom: 0;
        font-size: 1.3rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* Hero Section for Mobile */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 4%;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-search {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-search input {
        border-radius: var(--border-radius);
        width: 100%;
        padding: 15px 20px;
    }
    
    .hero-search button {
        border-radius: var(--border-radius);
        padding: 15px 20px;
        justify-content: center;
        width: 100%;
    }
    
    .hero-image {
        justify-content: center;
    }
    
    .hero-image img {
        max-width: 100%;
    }
    
    /* Categories for Mobile */
    .categories {
        padding: 40px 4%;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .category-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-card {
        padding: 20px 15px;
    }
    
    .category-card i {
        font-size: 2rem;
    }
    
    .category-card h3 {
        font-size: 1rem;
    }
    
    /* Items Section for Mobile */
    .items-section {
        padding: 30px 4% 50px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .filter-container {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    #sortSelect, .clear-btn {
        width: 100%;
        text-align: center;
    }
    
    .items-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .item-card {
        max-width: 100%;
    }
    
    /* Footer for Mobile */
    .footer {
        padding: 40px 4% 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-bottom {
        padding-top: 30px;
        margin-top: 30px;
        font-size: 0.85rem;
    }
}

/* Small Mobile Devices (up to 480px) */
@media (max-width: 480px) {
    .category-list {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .item-name {
        font-size: 1.2rem;
    }
    
    .item-price {
        font-size: 1.3rem;
    }
    
    .items-count {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

/* Large Desktop Screens (min-width: 1400px) */
@media (min-width: 1400px) {
    .nav-container, .hero, .categories, .items-section, .footer-content {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 30px 4%;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .category-card {
        padding: 15px 10px;
    }
}

/* Print Styles */
@media print {
    .navbar, .hero-search, .filter-container, .footer {
        display: none;
    }
    
    body {
        background-color: white;
    }
    
    .items-container {
        display: block;
    }
    
    .item-card {
        break-inside: avoid;
        margin-bottom: 20px;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}