/* Estilos específicos para la vista del menú */

/* Botón de ajustes en el header */
.btn-settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    margin-left: 0.5rem;
    text-decoration: none;
    color: #3A2E22;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.btn-settings:hover {
    background: #F6EFE6;
    color: #FF7A1A;
}



.coming-soon {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.coming-soon i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.coming-soon h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.coming-soon p {
    font-size: 1rem;
    color: #888;
}

/* Mejoras en las estadísticas */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.stat-icon i {
    color: white;
    font-size: 1.2rem;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
}

.stat-info p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

/* Botón de agregar producto */
.add-product-section {
    margin-bottom: 30px;
    text-align: right;
}

.add-product-section .btn {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Sección de productos */
.products-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-info h3 {
        font-size: 1.5rem;
    }

    .add-product-section {
        text-align: center;
    }

    /* Nombre de empresa truncado en móvil */
    .dashboard-header .user-details .username {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100vw - 160px);
    }

    /* Botón de ajustes integrado visualmente con el header */
    .btn-settings {
        width: 44px;
        height: 44px;
        border-radius: 0.75rem;
        background: #fff;
        border: 1px solid #E8DFD3;
        color: #6E5947;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .btn-settings:hover {
        background: #fff;
        color: #FF7A1A;
        border-color: #FF7A1A;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .coming-soon {
        padding: 40px 20px;
    }
    
    .coming-soon i {
        font-size: 3rem;
    }
}

/* Estilos para la lista de productos */
.products-list {
    margin-top: 20px;
}

.category-section {
    margin-bottom: 30px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.drag-handle {
    color: #999;
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.category-products {
    display: grid;
    gap: 15px;
}

.product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.product-item:hover {
    background: #ffffff;
    border-color: #eb5a1a;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.product-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.product-info .product-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.product-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.5rem;
}

.product-details {
    flex: 1;
    min-width: 0;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-description {
    color: #6c757d;
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
}

.product-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.product-actions .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-products i {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #dee2e6;
}

.no-products h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #495057;
}

.no-products p {
    margin-bottom: 25px;
    font-size: 1rem;
}

/* Responsive para productos */
@media (max-width: 768px) {
    .product-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 20px;
    }
    
    .product-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .product-info .product-image {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .product-actions {
        justify-content: center;
        gap: 10px;
        display: flex;
        width: 100%;
    }
    
    .product-actions .btn {
        padding: 10px 15px;
        min-width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .products-section {
        padding: 15px;
    }
    
    .product-item {
        padding: 15px;
    }
    
    .product-info .product-image {
        width: 70px;
        height: 70px;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .product-description {
        font-size: 0.85rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .product-actions .btn {
        padding: 8px 12px;
        min-width: 40px;
        height: 40px;
    }
}
