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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.mobile-container {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
    padding-bottom: 60px;
}

/* Header - COULEUR BLEU */
.header {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    padding: 15px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

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

.user-info {
    font-size: 0.9em;
    opacity: 0.9;
}

.back-button {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    text-decoration: none;
    font-size: 1.2em;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #2196F3;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.2);
}

.category-icon {
    font-size: 2.5em;
    color: #2196F3;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 1.1em;
    color: #333;
    font-weight: 600;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 2px solid #e0e0e0;
    max-width: 480px;
    margin: 0 auto;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 0.75em;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 10px;
}

.nav-item.active {
    color: #2196F3;
    background: rgba(33, 150, 243, 0.1);
}

.nav-item i {
    font-size: 1.3em;
    margin-bottom: 5px;
}

/* Login Container */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.login-container h2 {
    color: #2196F3;
    margin-bottom: 10px;
    font-size: 2em;
}

.login-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.input-group textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    border-left: 4px solid #c62828;
}

.success {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    border-left: 4px solid #2e7d32;
}

.register-link {
    margin-top: 20px;
    color: #666;
}

.register-link a {
    color: #2196F3;
    text-decoration: none;
    font-weight: 600;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2em;
}

.product-name {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1em;
}

.product-description {
    color: #666;
    font-size: 0.85em;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-price {
    color: #2196F3;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.add-to-cart {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: translateY(-2px);
}

/* Cart Styles */
.cart-container {
    padding: 15px;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-cart i {
    font-size: 4em;
    color: #ddd;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #666;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    margin-bottom: 5px;
}

.cart-item-price {
    color: #2196F3;
    font-weight: bold;
    margin-bottom: 8px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
}

.quantity {
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.remove-btn {
    background: #ff4757;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-total {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-total h3 {
    color: #2196F3;
    margin-bottom: 15px;
}

.btn-checkout {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.btn-checkout:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

/* Profile Styles */
.profile-container {
    padding: 20px;
}

.profile-actions {
    margin-top: 20px;
    text-align: center;
}

/* Admin Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
}

.stat-icon.clients { background: #2196F3; }
.stat-icon.produits { background: #4CAF50; }
.stat-icon.commandes { background: #FF9800; }
.stat-icon.revenue { background: #9C27B0; }

.stat-info h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.stat-info p {
    color: #666;
    font-size: 0.9em;
}

.admin-menu {
    padding: 20px;
}

.admin-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.admin-menu-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.admin-menu-item i:first-child {
    color: #2196F3;
    margin-right: 10px;
    font-size: 1.2em;
}

.admin-nav {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Sous-catégories */
.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
}

.subcategory-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.subcategory-card:hover {
    transform: translateY(-5px);
    border-color: #2196F3;
}

.subcategory-icon {
    font-size: 2em;
    color: #2196F3;
    margin-bottom: 10px;
}

/* Notifications */
.notification-badge {
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7em;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -5px;
    right: -5px;
}

.notification-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 4px solid #2196F3;
}

.notification-item.new {
    border-left-color: #ff4757;
    background: #fff5f5;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* Responsive */
@media (max-width: 480px) {
    .categories-grid,
    .products-grid,
    .stats-grid,
    .subcategories-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .mobile-container {
        padding-bottom: 70px;
    }
    
    .stat-card {
        padding: 15px;
    }
}
/* Styles Admin supplémentaires */
.notifications-quick {
    padding: 15px;
}

.notification-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-alert:hover {
    background: #ffeaa7;
    transform: translateX(5px);
}

.notification-alert i:first-child {
    color: #f39c12;
    margin-right: 10px;
}

.dashboard-section {
    padding: 15px;
    background: white;
    margin: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.dashboard-item {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

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

.item-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #666;
}

.menu-item-icon {
    position: relative;
    margin-right: 10px;
}

/* Filtres */
.filters {
    display: flex;
    padding: 15px;
    gap: 10px;
    overflow-x: auto;
}

.filter-btn {
    padding: 8px 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

/* Listes admin */
.admin-list {
    padding: 0 15px 15px;
}

.admin-list-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Formulaires admin */
.admin-form {
    background: white;
    margin: 15px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-row .input-group {
    flex: 1;
}

.product-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}