* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Mobile Container */
.mobile-container {
    max-width: 480px;
    margin: 0 auto;
    background: #f5f7fa;
    min-height: 100vh;
    position: relative;
    padding-bottom: 70px;
}

/* Login Styles */
.login-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.app-logo {
    text-align: center;
    margin-bottom: 30px;
}

.app-logo i {
    font-size: 60px;
    color: #4CAF50;
    background: #e8f5e9;
    padding: 20px;
    border-radius: 50%;
}

.app-logo h1 {
    margin-top: 15px;
    color: #333;
    font-size: 28px;
}

.login-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: #f0f2f5;
    padding: 5px;
    border-radius: 10px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #4CAF50;
    color: white;
}

.login-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #45a049;
}

.signup-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.signup-link a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
}

/* App Header */
.app-header {
    background: white;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.header-top h2 {
    color: #4CAF50;
    font-size: 24px;
}

.header-icons i {
    font-size: 22px;
    margin-left: 15px;
    color: #666;
    cursor: pointer;
}

/* Search Bar */
.search-bar {
    background: #f0f2f5;
    border-radius: 25px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
}

.search-bar i {
    color: #999;
    margin-right: 10px;
}

.search-bar input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 16px;
}

.search-bar input:focus {
    outline: none;
}

/* Categories */
.categories-section {
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h3 {
    font-size: 18px;
    color: #333;
}

.section-header a {
    color: #4CAF50;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.categories-scroll {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    min-width: 80px;
    text-align: center;
    cursor: pointer;
}

.category-item .circle {
    width: 70px;
    height: 70px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.category-item i {
    font-size: 30px;
    color: #4CAF50;
}

.category-item span {
    font-size: 14px;
    color: #666;
}

.category-item.active .circle {
    background: #4CAF50;
}

.category-item.active i {
    color: white;
}

/* Products Grid */
.products-section {
    padding: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 120px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.product-image i {
    font-size: 50px;
    color: #4CAF50;
}

.product-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.product-info .price {
    font-size: 18px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 10px;
}

.product-info .unit {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

.add-to-cart {
    width: 100%;
    padding: 8px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: #45a049;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    position: relative;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: #4CAF50;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Cart Item Styles */
.cart-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.cart-item h4 {
    margin-bottom: 5px;
}

.cart-item button {
    width: 30px;
    height: 30px;
    border: none;
    background: #f0f2f5;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    margin: 0 5px;
}

.cart-item button:hover {
    background: #4CAF50;
    color: white;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

/* Order Card */
.order-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.order-status {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-delivered {
    background: #cce5ff;
    color: #004085;
}

/* Admin Panel Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
}

.admin-sidebar {
    width: 250px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    padding: 30px 0;
}

.admin-logo {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.admin-logo i {
    font-size: 40px;
    color: #4CAF50;
}

.admin-logo h2 {
    color: #333;
    margin: 10px 0 5px;
}

.admin-logo span {
    color: #999;
    font-size: 14px;
}

.admin-menu {
    padding: 20px;
}

.menu-item {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.menu-item i {
    width: 20px;
}

.menu-item:hover, .menu-item.active {
    background: #e8f5e9;
    color: #4CAF50;
}

.admin-main {
    flex: 1;
    padding: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-profile i {
    font-size: 30px;
    color: #666;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-card i {
    font-size: 40px;
    color: #4CAF50;
}

.stat-card h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.stat-card p {
    color: #666;
}

/* Admin Product Management */
.add-product-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 20px;
}

.product-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: grid;
    gap: 15px;
}

.product-form input, .product-form select, .product-form textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.product-form button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-right: 10px;
}

.product-form button:first-of-type {
    background: #4CAF50;
    color: white;
}

.product-form button:last-of-type {
    background: #6c757d;
    color: white;
}

.admin-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.admin-product-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.admin-product-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.admin-product-actions button {
    padding: 5px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.edit-btn {
    background: #2196F3;
    color: white;
}

.delete-btn {
    background: #ff4444;
    color: white;
}

/* Toast Message */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        padding: 10px;
    }
    
    .admin-menu {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }
    
    .menu-item {
        min-width: 100px;
        text-align: center;
        flex-direction: column;
    }
    
    .admin-main {
        padding: 15px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}